error 076: syntax error in the expression, or invalid function call
CMD:parkol(playerid, params[]){if(IsPlayerConnected(playerid)){if(FelhasznaloInfo[playerid][bejelentkezve] == 1){ if(IsPlayerInAnyVehicle(playerid)) { if(JarmuInfo[GetPlayerVehicleID(playerid)][Tulaj] == KarakterInfo[playerid][Nev]) { } else { SendNGRPMessage(playerid, 2, \"Ez nem a te jármûved!\"); } } else { SendNGRPMessage(playerid, 2, \"Nem vagy jármûben!\"); }}}}
CMD:parkol(playerid, params[]){ if(IsPlayerConnected(playerid)) { if(FelhasznaloInfo[playerid][bejelentkezve] == 1) { if(IsPlayerInAnyVehicle(playerid)) { if(JarmuInfo[GetPlayerVehicleID(playerid)][Tulaj] == strcmp(KarakterInfo[playerid][Nev])) { } else { SendNGRPMessage(playerid, 2, \"Ez nem a te jármûved!\"); } } else { SendNGRPMessage(playerid, 2, \"Nem vagy jármûben!\"); } } }}
CMD:parkol(playerid, params[]){if(!IsPlayerConnected(playerid) || FelhasznaloInfo[playerid][bejelentkezve] == 0) return 1;new jarmu = GetPlayerVehicleID(playerid);if(jarmu == INVALID_VEHICLE_ID || jarmu == -1) return SendNGRPMessage(playerid, 2, \"Nem vagy jármûben!\");if(strcmp(JarmuInfo[jarmu][Tulaj], KarakterInfo[playerid][Nev]) != 0) SendNGRPMessage(playerid, 2, \"Ez nem a te jármûved!\");//Ide jöhet a kód, ami lefut, ha minden oké. A jármûvel való operáláshoz létrehoztam neki egy jarmu változót.return 1;}
forward KickTimer(playerid);// Kicks a player with a reasonCOMMAND:kick(playerid, params[]){ new PlayerToKick, Reason[128], ReasonMsg[128], Name[24]; // Send the command to all admins so they can see it SendAdminText(playerid, \"/kick\", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Check if the player\'s admin-level is at least 1 if (APlayerData[playerid][PlayerLevel] >= 1) { if (sscanf(params, \"us[128]\", PlayerToKick, Reason)) SendClientMessage(playerid, 0xFF0000AA, \"Hasznalta: \\\"/kick <JátékosNév/ID> <Indok>\\\"\"); else { if (IsPlayerConnected(PlayerToKick)) // If the player is a valid playerid (he\'s connected) error&& { if (APlayerData[PlayerToKick][PlayerLevel] == 0) { // Get the name of the player who warned the player GetPlayerName(playerid, Name, sizeof(Name)); // Send the warned player a message who kicked him and why he\'s been kicked format(ReasonMsg, 128, \"Kickelve lettél egy admin által %s %s\", AdminLevelName[APlayerData[playerid][PlayerLevel]], Name); SendClientMessage(PlayerToKick, 0xFF0000FF, ReasonMsg); format(ReasonMsg, 128, \"Indok: %s\", Reason); SendClientMessage(PlayerToKick, 0xFF0000FF, ReasonMsg); SetTimerEx(\"KickTimer\",100,false,\"i\",PlayerToKick); } SendClientMessage(playerid, 0xFF0000FF, \"Admint nem kickelhetel!.\"); } else SendClientMessage(playerid, 0xFF0000FF, \"Nincs ilyen játékos.\"); } } else return 0; } else return 0; // Let the server know that this was a valid command return 1;}
forward KickTimer(playerid);// Kicks a player with a reasonCOMMAND:kick(playerid, params[]){ new PlayerToKick, Reason[128], ReasonMsg[128], Name[24]; // Send the command to all admins so they can see it SendAdminText(playerid, \"/kick\", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Check if the player\'s admin-level is at least 1 if (APlayerData[playerid][PlayerLevel] >= 1) { if (sscanf(params, \"us[128]\", PlayerToKick, Reason)) SendClientMessage(playerid, 0xFF0000AA, \"Hasznalta: \\\"/kick <JátékosNév/ID> <Indok>\\\"\"); else { if (IsPlayerConnected(PlayerToKick)) // If the player is a valid playerid (he\'s connected) error&& { if (APlayerData[PlayerToKick][PlayerLevel] == 0) { // Get the name of the player who warned the player GetPlayerName(playerid, Name, sizeof(Name)); // Send the warned player a message who kicked him and why he\'s been kicked format(ReasonMsg, 128, \"Kickelve lettél egy admin által %s %s\", AdminLevelName[APlayerData[playerid][PlayerLevel]], Name); SendClientMessage(PlayerToKick, 0xFF0000FF, ReasonMsg); format(ReasonMsg, 128, \"Indok: %s\", Reason); SendClientMessage(PlayerToKick, 0xFF0000FF, ReasonMsg); SetTimerEx(\"KickTimer\",100,false,\"i\",PlayerToKick); }else SendClientMessage(playerid, 0xFF0000FF, \"Admint nem kickelhetsz.\"); } else SendClientMessage(playerid, 0xFF0000FF, \"Nincs ilyen játékos.\"); } } else return 0; } else return 0; // Let the server know that this was a valid command return 1;}
[15:10:32] [npc:join] FakeFlash has joined the server (NPC IP)[15:10:51] [npc:part] FakeFlash has left the server (0:0)[/quote]
Hali.Csaináltam egy NPC-t mert sok minden bugol valamiért 0-ás ID-re és azt gondoltam a legkönnyebb megoldásnak ha lerakok egy NPC-t. Ez meg is valósult, lespawnoltatom, majd disconnectel magától.Bent van a rec file, megvan a scriptje, megvan a ConnectNPC, és a cfg be is a maxnpc 1..Mi lehet a baj? [15:10:32] [npc:join] FakeFlash has joined the server (NPC IP)[15:10:51] [npc:part] FakeFlash has left the server (0:0) [/quote]nálam, ha valami id0-ra bugol szimplán for(new i=0;i<MAX_PLAYERS;i++) és ez megoldja
[15:10:32] [npc:join] FakeFlash has joined the server (NPC IP)[15:10:51] [npc:part] FakeFlash has left the server (0:0)
for(new i=0;i<MAX_PLAYERS;i++)