25.12.2018, 18:36
Код:
CMD:vipwwheels(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); if(!IsPlayerInAnyVehicle(playerid)) return SS(playerid, COLOR_LIGHTGREEN3, "Nu esti intr-un vehicul!", "You are not in a vehicle!"); new carid = GetPlayerVehicleID(playerid),idcar=-1; for(new vv; vv < MAX_PERSONAL_VEHICLES; vv++) { if(carid == PlayerInfo[playerid][pCarID][vv]) { idcar = vv; } } if(idcar == -1) return SS(playerid, COLOR_LIGHTGREEN3, "Poti folosi aceasta comanda doar pe vehicule VIP.", "You can add custom wheels on VIP vehicles."); if(IsPlayerConnected(playerid)) { new wheels; if(sscanf(params, "v",wheels)) return SendClientMessage(playerid, COLOR_GREY, "Syntax: /vipwheels <dollar> <trance> <x>"); switch(wheels) { case 1: AddVehicleComponent(GetPlayerVehicleID(playerid), 1080); CarMod[playerid][idcar][15] = 1080; } } return 1; }
D:\server\gamemodes\ExtremeGame.pwn(40911) : error 002: only a single statement (or expression) can follow each "case"
D:\server\gamemodes\ExtremeGame.pwn(40911) : error 029: invalid expression, assumed zero
D:\server\gamemodes\ExtremeGame.pwn(40911) : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(40911) : error 001: expected token: ";", but found "]"
D:\server\gamemodes\ExtremeGame.pwn(40911) : fatal error 107: too many error messages on one line
lines of errors marked with red