Zheka_Cheshev
Компетентный
Помогите добавил case вот ошибки:
Вот код:
сама ошибка вот в этой строке:
убираю вот это:
появляются новый ошибки:
Кто поможет дам +сиГов
---------- Добавлено сообщение в 14:07 ---------- Предыдущее в 13:49 ----------
СРОЧНО ОЧЕНЬ СРОЧНО ПОМОГИТЕ(сорри за капс, просто реально очень очень срочно...)
PHP:
C:UsersÀëåêñàíäð\Desktop\Rp.pwn\gamemodes\Rp.pwn(14059) : error 014: invalid statement; not in switch
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn(14059) : warning 215: expression has no effect
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn(14059) : error 001: expected token: ";", but found ":"
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn(14059) : error 029: invalid expression, assumed zero
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn(14059) : fatal error 107: too many error messages on one line
PHP:
case 6482:
{
if(response)
{
switch(listitem)
{
case 0:
{
new carid = GetPlayerVehicleID(playerid);
if(IsA80(carid))
{
for(new b = 0; b < sizeof(SBizzInfo); b++)
{
if(PlayerToPoint(10.0, playerid, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]))
{
if(SBizzInfo[b][sbProducts] <=0)
{
SendClientMessage(playerid,COLOR_GRAD1,"Çàïðàâêà íå ðàáîòàåò!");
SBizzInfo[b][sbProducts] = 0;
return 1;
}
if(SBizzInfo[b][sbLocked] ==1) return SendClientMessage(playerid,COLOR_GRAD1,"Çàïðàâêà çàêðûòà!");
if(Fuell[carid] >=100) return SendClientMessage(playerid,COLOR_GRAD1,"Áàê çàïîëíåí, óäà÷íîé ïîåçäêè!");
if(PlayerInfo[playerid][pCash] < SBizzInfo[b][sbPrice80]) return SendClientMessage(playerid,COLOR_GRAD1,"Íå äîñòàòî÷íî äåíåã!");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "Âû íå â ìàøèíå!");
SBizzInfo[b][sbTill] += SBizzInfo[b][sbPrice80];
PlayerInfo[playerid][pCash] -=SBizzInfo[b][sbPrice80];
SBizzInfo[b][sbProducts] -= 150;
Fuell[carid] = 100;
if(GetPlayerVehicleID(playerid) == caridhouse[playerid])
{
PlayerInfo[playerid][pFuelcar] = 100;
}
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Please Wait",2000,3);
}
return 1;
}
case 1:
{
return 1;
}
case 2:
{
return 1;
}
case 3:
{
return 1;
}
}
}
else
{
return 1;
}
}
PHP:
case 1:
PHP:
case 1:
{
return 1;
}
case 2:
{
return 1;
}
case 3:
{
return 1;
}
}
}
else
{
return 1;
}
}
PHP:
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn(14058) : error 002: only a single statement (or expression) can follow each "case"
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn(14063) : error 014: invalid statement; not in switch
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn(14063) : warning 215: expression has no effect
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn(14063) : error 001: expected token: ";", but found ":"
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn(14063) : error 029: invalid expression, assumed zero
C:UsersÀëåêñàíäð\Desktop\Rp-Samp.ru\gamemodes\Rp.pwn
---------- Добавлено сообщение в 14:07 ---------- Предыдущее в 13:49 ----------
СРОЧНО ОЧЕНЬ СРОЧНО ПОМОГИТЕ(сорри за капс, просто реально очень очень срочно...)
