new bool:PlayerInDerby [ MAX_PLAYERS ];public OnPlayerConnect ( playerid ){ PlayerInDerby [ playerid ] = false;}public OnPlayerCommandText ( playerid, cmdtext [ ] ){ if ( strcmp ( cmdtext, \"/off-derby\", true ) == 0 ) { if ( PlayerInDerby [ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \" Már a derby zónához teleportáltál!\"); if ( IsPlayerInAnyVehicle ( playerid ) ) return SetVehiclePos ( GetPlayerVehicleID ( playerid ), 1526.8193,-1027.9990,23.9216 ); PlayerInDerby [ playerid ] = true; return 1; } if ( strcmp ( cmdtext, \"/exit-derby\", true ) == 0 ) { if ( PlayerInDerby [ playerid ] == false ) return SendClientMessage ( playerid, 0x00000, \"Nem vagy a derby zónában!\"); PlayerInDerby [ playerid ] =false; SendClientMessage ( playerid, 0x00000, \"Ki lépétál a derby zónából!\"); SetPlayerPos ( playerid, -666.6516,1521.9204,86.5108 ); return 1; } return 0;}
if ( PlayerInDerby [ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \"Nem használhatod a parancsokat, mert a derby zónában vagy! \");
D:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : error 017: undefined symbol \"PlayerInDerby\"D:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : warning 215: expression has no effectD:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : error 001: expected token: \";\", but found \"]\"D:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : error 029: invalid expression, assumed zeroD:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
#include <a_samp>#if defined FILTERSCRIPTnew bool:PlayerInDerby [ MAX_PLYERS ];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" X-Zyte derby By:Eric \");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" X-Zyte derby By:Eric \");print(\"----------------------------------\\n\");}#endif public OnPlayerConnect(playerid){ PlayerInDerby [ playerid ] = false;return 1;} public OnPlayerCommandText(playerid, cmdtext[]){if ( PlayerInDerby [ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \"Nem használhatod a parancsokat, mert a derby zónában vagy! \"); if ( strcmp ( cmdtext, \"/off-derby\", true ) == 0 ) { if ( PlayerInDerby [ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \" Már a derby zónához teleportáltál!\"); if ( IsPlayerInAnyVehicle ( playerid ) ) return SetVehiclePos ( GetPlayerVehicleID ( playerid ), 1526.8193,-1027.9990,23.9216 ); PlayerInDerby [ playerid ] = true; return 1; } if ( strcmp ( cmdtext, \"/exit-derby\", true ) == 0 ) { if ( PlayerInDerby [ playerid ] == false ) return SendClientMessage ( playerid, 0x00000, \"Nem vagy a derby zónában!\"); PlayerInDerby [ playerid ] =false; SendClientMessage ( playerid, 0x00000, \"Ki lépétál a derby zónából!\"); SetPlayerPos ( playerid, -666.6516,1521.9204,86.5108 ); return 1; } return 0;}
beraktam mindent ahova kell és D:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : error 017: undefined symbol \"PlayerInDerby\"D:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : warning 215: expression has no effectD:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : error 001: expected token: \";\", but found \"]\"D:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : error 029: invalid expression, assumed zeroD:\\JÁTÉKOK\\GTA San Andreas\\szeró\\pawno\\new.pwn(52) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Mi lehet a hiba ja és amelyik parancsot nemhasználhatja azt hova kell beírni?
#include <a_samp>new bool:PlayerInDerby [ MAX_PLAYERS ];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" X-Zyte derby By:Eric \");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}public OnPlayerConnect(playerid){ PlayerInDerby[ playerid ] = false; return 1;} public OnPlayerCommandText(playerid, cmdtext[]){if ( PlayerInDerby[ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \"Nem használhatod a parancsokat, mert a derby zónában vagy! \"); if ( strcmp ( cmdtext, \"/off-derby\", true ) == 0 ) { if ( PlayerInDerby[ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \" Már a derby zónához teleportáltál!\"); if ( IsPlayerInAnyVehicle ( playerid ) ) return SetVehiclePos ( GetPlayerVehicleID ( playerid ), 1526.8193,-1027.9990,23.9216 ); PlayerInDerby[ playerid ] = true; return 1; } if ( strcmp ( cmdtext, \"/exit-derby\", true ) == 0 ) { if ( PlayerInDerby[ playerid ] == false ) return SendClientMessage ( playerid, 0x00000, \"Nem vagy a derby zónában!\"); PlayerInDerby[ playerid ] =false; SendClientMessage ( playerid, 0x00000, \"Ki lépétál a derby zónából!\"); SetPlayerPos ( playerid, -666.6516,1521.9204,86.5108 ); return 1; } return 0;}
new bool:PlayerInDerby[MAX_PLAYERS];
#include <a_samp>new bool:pDerby [ MAX_PLAYERS ];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" X-Zyte derby By:Eric \");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}/*public OnPlayerConnect(playerid){ pDerby [ playerid ] = false; return 1;}*/ public OnPlayerCommandText(playerid, cmdtext[]){if ( pDerby [ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \"Nem használhatod a parancsokat, mert a derby zónában vagy! \"); if ( strcmp ( cmdtext, \"/off-derby\", true ) == 0 ) { if ( pDerby [ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \" Már a derby zónához teleportáltál!\"); if ( IsPlayerInAnyVehicle ( playerid ) ) return SetVehiclePos ( GetPlayerVehicleID ( playerid ), 1526.8193,-1027.9990,23.9216 ); pDerby [ playerid ] = true; return 1; } if ( strcmp ( cmdtext, \"/exit-derby\", true ) == 0 ) { if ( pDerby [ playerid ] == false ) return SendClientMessage ( playerid, 0x00000, \"Nem vagy a derby zónában!\"); pDerby [ playerid ] =false; SendClientMessage ( playerid, 0x00000, \"Ki lépétál a derby zónából!\"); SetPlayerPos ( playerid, -666.6516,1521.9204,86.5108 ); return 1; } if (strcmp(\"/derby\", cmdtext, true, 10) == 0) { new pName[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"%s elteleportált a derby-hez!(/derby) \", pName); SendClientMessageToAll(0x99FF00AA, string); SetPlayerPos(playerid,-1011.9091,-1009.4459,129.2126); return 1; } return 0;}
#include <a_samp>new bool:pDerby [ MAX_PLAYERS ];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" X-Zyte derby By:Eric \");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}public OnPlayerConnect(playerid){ pDerby [ playerid ] = false; return 1;} public OnPlayerCommandText(playerid, cmdtext[]){ if ( strcmp ( cmdtext, \"/off-derby\", true ) == 0 ) { if ( pDerby [ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \" Már a derby zónához teleportáltál!\"); if ( IsPlayerInAnyVehicle ( playerid ) ) return SetVehiclePos ( GetPlayerVehicleID ( playerid ), 1526.8193,-1027.9990,23.9216 ); pDerby [ playerid ] = true; return 1; } if ( strcmp ( cmdtext, \"/exit-derby\", true ) == 0 ) { if ( pDerby [ playerid ] == false ) return SendClientMessage ( playerid, 0x00000, \"Nem vagy a derby zónában!\"); pDerby [ playerid ] =false; SendClientMessage ( playerid, 0x00000, \"Ki lépétál a derby zónából!\"); SetPlayerPos ( playerid, -666.6516,1521.9204,86.5108 ); return 1; } if (strcmp(\"/derby\", cmdtext, true, 10) == 0) { if ( pDerby [ playerid ] == true ) return SendClientMessage ( playerid, 0x00000, \"Nem használhatod a parancsokat, mert a derby zónában vagy! \"); new pName[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"%s elteleportált a derby-hez!(/derby) \", pName); SendClientMessageToAll(0x99FF00AA, string); SetPlayerPos(playerid,-1011.9091,-1009.4459,129.2126);return 1; } return 0;}