12.06.2012, 13:15
(
Последний раз редактировалось carbonzero; 12.06.2012 в 13:17.
Причина: title...
)
Код:
//---------------------------------------------------------------<[Giveallevel]>----------------------------------------------------------------------//
if(strcmp(cmd, "/givelevelall", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 6)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new playerlevel = PlayerInfo[pLevel];
PlayerInfo[pLevel] = playerlevel + 1;
format(string, sizeof(string), " Administrator %s gave up 1 level all players who are online",sendername);
SendClientMessage(i,COLOR_LIGHTGREEN,string);
}
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command !");
}
}
Код:
C:\Documents and Settings\Carbon\Desktop\larp.pwn(58017) : error 033: array must be indexed (variable "-unknown-") C:\Documents and Settings\Carbon\Desktop\larp.pwn(58018) : warning 217: loose indentation C:\Documents and Settings\Carbon\Desktop\larp.pwn(58018) : error 033: array must be indexed (variable "PlayerInfo")
Код:
PlayerInfo[pLevel] = playerlevel + 1;


