03.07.2013, 00:43
i want to make an admin chat only i got an error can someone help me?
C:\Program Files\Rockstar Games\script\gamemodes\gmd.pwn(1577) : error 033: array must be indexed (variable "text")
What i am doing wrong and please explain why?
C:\Program Files\Rockstar Games\script\gamemodes\gmd.pwn(1577) : error 033: array must be indexed (variable "text")
pawn Код:
dcmd_achat(playerid, params[])
{
if(AdminLevel [playerid] == 0) return SendClientMessage(playerid, RED, "You need to be an admin!"); // line 1577
new text[128];
if((params, "s",text)) return SendClientMessage(playerid, APINK, "Usage: /achat [Text]");
format(text,sizeof(text),""white"Admin "PINK"%s "white"| Text: "PINK"%s",GetName(playerid),params[0]);
foreach(Player, i)
if(AdminLevel [playerid] >1)
SendClientMessage(i,APINK,text);
return 1;
}