CMD:motor(playerid, params[]){new startnum = random(5);if(!strcmp(params, \"be\")){ if(startnum == 1) { new vehid = GetPlayerVehicleID(playerid); SetVehicleParamsEx(vehid,1,0,0,0,0,0,0); SendClientMessage(playerid,sarga,\"Motor sikeresen beindult!\"); }}else{SendClientMessage(playerid,piros,\"Motor beindítása sikertelen!\");}else if(!strcmp(params, \"ki\")){new vehid = GetPlayerVehicleID(playerid);SetVehicleParamsEx(vehid,0,0,0,0,0,0,0);SendClientMessage(playerid, -1, \"A motor leállítása sikeres volt.\");}return 1;}
C:\\Documents and Settings\\ProExpert97\\Asztal\\Goudlyne RPG\\gamemodes\\AlienRPG.pwn(244) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\ProExpert97\\Asztal\\Goudlyne RPG\\gamemodes\\AlienRPG.pwn(244) : warning 215: expression has no effectC:\\Documents and Settings\\ProExpert97\\Asztal\\Goudlyne RPG\\gamemodes\\AlienRPG.pwn(244) : error 001: expected token: \";\", but found \"if\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
else if(!strcmp(params, \"ki\"))
CMD:motor(playerid, params[]){ new startnum = random(5); if(!strcmp(params, \"be\")) { if(startnum == 1) { new vehid = GetPlayerVehicleID(playerid); SetVehicleParamsEx(vehid,1,0,0,0,0,0,0); SendClientMessage(playerid,sarga,\"Motor sikeresen beindult!\"); } else { SendClientMessage(playerid,piros,\"Motor beindítása sikertelen!\"); } } else if(!strcmp(params, \"ki\")) { new vehid = GetPlayerVehicleID(playerid); SetVehicleParamsEx(vehid,0,0,0,0,0,0,0); SendClientMessage(playerid, -1, \"A motor leállítása sikeres volt.\"); } return 1;}
#if !defined isnull #define isnull(%1) \\ ((!(%1[0])) || (((%1[0]) == \'\\1\') && (!(%1[1]))))#endifCMD:motor(playerid,params[]){if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, \"Nem vagy jármûben.\"); if(isnull(params))return SendClientMessage(playerid, 0xFF0000FF, \"Használata: /motor (be/ki)\");if(!strcmp(params, \"be\")){ if(random(5) == 1) { SetVehicleParamsEx(GetPlayerVehicleID(playerid),1,0,0,0,0,0,0); SendClientMessage(playerid,0xFFFF00FF,\"Motor sikeresen beindult!\"); } else { SendClientMessage(playerid,0xFF0000FF,\"Motor beindítása sikertelen!\"); }}else if(!strcmp(params, \"ki\")){SetVehicleParamsEx(GetPlayerVehicleID(playerid),0,0,0,0,0,0,0);SendClientMessage(playerid, -1, \"A motor leállítása sikeres volt.\");}else{ SendClientMessage(playerid, 0xFF0000FF, \"Használata: /motor (be/ki)\");}return 1;}