ebbe a scriptbe mi lehet a hiba?elõre köszönöm
CMD:asay(playerid, params[])
{
new sendername[MAX_PLAYER_NAME], string[160];
new admintext[64];
if(!(PlayerInfo[playerid][pAdmin] >= 1)) return SCM(playerid, COLOR_GREY,\"Nem Használhatod ezt a parancsot\");
if(isnull(params)) return SCM(playerid,COLOR_GOLD,\"Használat: /asay [chat]\");
if(PlayerInfo[pAdmin] >= 1 && PlayerInfo[pAdmin] < 1339)
{
new admtext[64], sendername[MAX_PLAYER_NAME], string[128];
if(PlayerInfo[pAdmin] == 1338) { admtext = \"FõScripter\"; }
else if(PlayerInfo[pAdmin] == 1337) { admtext = \"Tulajdonos\"; }
else if(PlayerInfo[pAdmin] == 4) { admtext = \"Fõadmin\"; }
else if(PlayerInfo[pAdmin] == 3) { admtext = \"Haladó Admin\"; }
else if(PlayerInfo[pAdmin] == 2) { admtext = \"Admin\"; }
else if(PlayerInfo[pAdmin] == 1) { admtext = \"Adminsegéd\"; }
else { admtext = \"Adminsegéd\"; }
GetPlayerName(i, sendername, sizeof(sendername));
sendername[strfind(sendername,\"_\")] = \' \';
format(string,160,\"*%d Admin %s: %s\",PlayerInfo[playerid][pAdmin],sendername,params);
SendClientMessageToAll(COLOR_GOLD, string);
return 1;
}
return 0;
}
ERROR$WARN:
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(5754) : warning 208: function with tag result used before definition, forcing reparse
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(41) : warning 201: redefinition of constant/macro (symbol \"strcpy(%0,%1,%2)\")
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(2191) : warning 225: unreachable code
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3594) : error 017: undefined symbol \"i\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3596) : warning 219: local variable \"sendername\" shadows a variable at a preceding level
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3596) : warning 219: local variable \"string\" shadows a variable at a preceding level
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3597) : error 017: undefined symbol \"i\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3598) : error 017: undefined symbol \"i\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3599) : error 017: undefined symbol \"i\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3600) : error 017: undefined symbol \"i\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3601) : error 017: undefined symbol \"i\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3602) : error 017: undefined symbol \"i\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3604) : error 017: undefined symbol \"i\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3590) : warning 204: symbol is assigned a value that is never used: \"admintext\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3589) : warning 204: symbol is assigned a value that is never used: \"string\"
C:\\Users\\Dawee\\Desktop\\basic\\gamemodes\\rp.pwn(3589) : warning 204: symbol is assigned a value that is never used: \"sendername\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.