[pawn]//----------------------------------[ADMINAD]------------------------------------------------
if(strcmp(cmd, \"/adminad\", true) == 0)
{
if(IsPlayerConnected(playerid))
{ new tmp[25];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, YELLOW, \"HASZNÁL: /adminad [iD/Név] [szint(1-2)]\");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, GivePlayer, sizeof(GivePlayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pAdmin] = level;
printf(\"Aüzenet: %s kinevezte %s szint: %d adminnak.\", sendername, giveplayer, level);
format(string, sizeof(string), \" %d admint kaptál tõle: %s\", level, sendername);
SendClientMessage(para1, COLOR_WHITE, string);
format(string, sizeof(string), \" Kinevezted %s szint: %d adminnak.\", giveplayer,level);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, \" Nem vagy Tulaj!\");
}
}
return 1;
}[/pawn]
D:\\Games\\SAMP\\gamemodes\\BorgoreDM.pwn(367) : error 017: undefined symbol \"GivePlayer\"
D:\\Games\\SAMP\\gamemodes\\BorgoreDM.pwn(367) : error 017: undefined symbol \"GivePlayer\"
D:\\Games\\SAMP\\gamemodes\\BorgoreDM.pwn(367) : error 029: invalid expression, assumed zero
D:\\Games\\SAMP\\gamemodes\\BorgoreDM.pwn(367) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Mi a megoldás?:S Mi lehet a baja?