29.03.2014, 10:27
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);
}
"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);
}