06.04.2013, 18:58
i got a VIP chat give me the error i,
Код:
VIP.pwn(135) : error 017: undefined symbol "i" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
PHP код:
// This command is Vip Chat
COMMAND:v(playerid, params[])
{
if(Pinfo[i][VipLevel] >= 1)
{
new result[128];
if(sscanf(params,"s[128]",result))
{
SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /a [message]");
}
else
{
new string[128],Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(string,sizeof(string),"VIP-CHAT:%s (%d): %s",Name,playerid,result);
foreach(Player,i) if(Pinfo[i][VipLevel] >= 1) SendClientMessage(i,0x00FF00FF,string);
}
}
// Let the server know that this was a valid command
return 1;
}