Help( - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help( (
/showthread.php?tid=503375)
Help( -
xStunt - 29.03.2014
hi guys, help me pls....
"error 033: array must be indexed (variable "pName")"
Command:
Help pls
if(!strcmp(cmd,"/ans", true))
{
if(PlayerInfo[playerid][pAdmin] < 1) return 1;
new str[128];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0x21DD00FF, "{0077FF}[ROUTE 66]:{FFFF00} /ans Admin PM");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(str, 128, "Admin %s[%d] for %s[%d]: %s",PlayerInfo[playerid][pName], id, tmp);
SendAdminMessage(0xFF9945FF, str);
}
Re: Help( -
BroZeus - 29.03.2014
show the declaration of pName i mean its enum