help plz
#3

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 !");
}
}
Reply


Messages In This Thread
help plz - by StyleR - 07.09.2010, 15:07
Re: help plz - by Rachael - 07.09.2010, 15:13
Re: help plz - by Rachael - 07.09.2010, 15:18
Re: help plz - by StyleR - 07.09.2010, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)