Перейти к содержанию
Авторизация  
Eduard Vestornович

Проблемка

Рекомендуемые сообщения

Eduard Vestornович

Вот код : 

		case dDonate+17:
		{
			if(!response) return SPD(playerid,dDonate,list,"{12E023}Донат система","" #C_GRAY "1. {ffffff}Информация\n" #C_GRAY "2. {ffffff}Потратить gMoney\n" #C_GRAY "3. {ffffff}Кейсы","Ок","Закрыть");
            
  			switch(listitem)
			{
				case 0:
				{
				if(response)
				new veh;
				{
				    if(pInfo[playerid][cCar] == 1) return; SendClientMessage(playerid, #C_GRAY, "У вас уже есть личный автомобиль.");
					pInfo[playerid][pDonate] = pInfo[playerid][pDonate] - 290;
					cmd::veh 477 0 0(playerid);
					SCM(playerid,-1,"Вы приобрели Mercedes-Benz S600 Mayabach " #C_GRAY "500 gMoney");
				}
				else
				{
					cmd::veh 477 0 0(playerid);
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid,#C_GRAY,"У вас не хватает донат очков");
				return 1;
			}
		}

Код писал впервые (частично вырезал и дописывал или переписывал)

Движок : DC_CMD

Код ошибки : 

D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(3378) : warning 217: loose indentation
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(4714) : warning 217: loose indentation
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(5182) : warning 217: loose indentation
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9745) : error 003: declaration of a local variable must appear in a compound block
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9745) : error 017: undefined symbol "veh"
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9745) : warning 215: expression has no effect
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9747) : warning 213: tag mismatch
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9747) : warning 209: function "OnDialogResponse" should return a value
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9747) : error 035: argument type mismatch (argument 2)
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9749) : error 076: syntax error in the expression, or invalid function call
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9749) : warning 215: expression has no effect
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9749) : error 001: expected token: ";", but found "-integer value-"
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9749) : warning 215: expression has no effect
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9749) : error 001: expected token: ";", but found "-integer value-"
D:\Users\Vlad\Desktop\Lore [CRMP]\exciting\exciting\gamemodes\new.pwn(9749) : fatal error 107: too many error messages on one line

Compilation aborted.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Гость
Эта тема закрыта для публикации ответов.
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×

Важная информация

Мы разместили cookie-файлы на ваше устройство, чтобы помочь сделать этот сайт лучше. Вы можете изменить свои настройки cookie-файлов, или продолжить без изменения настроек.