07.09.2010, 15:18
Many errors here, compiling errors, and also errors that will compile but not do what you want them to do.
Код:
//---------------------------------------------------------------<[Giveallevel]>----------------------------------------------------------------------//
if(strcmp(cmd, "/givelevelall", true) == 0)//By SeTh
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
PlayerInfo[i][pLevel]++;
format(string, sizeof(string), " Administrator %s gave up 1 level all players who are online",sendername); // <-- have you defined sendername?
SendClientMessage(i,COLOR_LIGHTGREEN,string);
}
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command !");
}
}

