10.07.2012, 21:18
okay I am first time working with pInfo.. can anyone help me?
I got this command
I get tons of errors for the first line there
This is my enum
I got this command
PHP код:
if(strcmp("/kick", cmdtext, true) == 0)
{
if(pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED, "<!>You are not TDM administrator!");
{
new cmd[256], idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/kick", true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, COLOR_RED, "<!>Usage: /kick [playerid]");
Kick(strval(tmp));
return 1;
}
}
}
PHP код:
D:\Igre\SAMP Serveri\0.3c\gamemodes\TDM.pwn(643) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
D:\Igre\SAMP Serveri\0.3c\gamemodes\TDM.pwn(643) : warning 215: expression has no effect
D:\Igre\SAMP Serveri\0.3c\gamemodes\TDM.pwn(643) : error 001: expected token: ";", but found "]"
D:\Igre\SAMP Serveri\0.3c\gamemodes\TDM.pwn(643) : error 029: invalid expression, assumed zero
D:\Igre\SAMP Serveri\0.3c\gamemodes\TDM.pwn(643) : fatal error 107: too many error messages on one line
PHP код:
enum pInfo
{
bool:SpawnDance,
Float:SpawnAngle,
SpawnTimer,
pAdminLevel,
pCash,
pScore
};