25.11.2011, 21:16
pawn Код:
C:\Documents and Settings\Familia\Desktop\SAMP\gamemodes\bcrpg.pwn(16222) : error 033: array must be indexed (variable "sendername")
pawn Код:
if(PlayerInfo[i][pMember] == PlayerInfo[sendername][pMember])
C:\Documents and Settings\Familia\Desktop\SAMP\gamemodes\bcrpg.pwn(16222) : error 033: array must be indexed (variable "sendername")
if(PlayerInfo[i][pMember] == PlayerInfo[sendername][pMember])
if(PlayerInfo[i][pMember] == PlayerInfo[playerid][pMember])
if (strcmp(cmd, "/exemplo", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 0)
{
SendClientMessage(playerid,COLOR_GREY," Vocк nгo estб em uma organizaзгo!");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == PlayerInfo[sendername][pMember])
{
SendClientMessage(playerid,COLOR_GREY,"Hб jogadores online da sua organizaзгo.");
}
}
}
}
return 1;
}
if (strcmp(cmd, "/exemplo", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 0)
{
SendClientMessage(playerid,COLOR_GREY," Vocк nгo estб em uma organizaзгo!");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == //coloca aqui o numero da org)
{
SendClientMessage(playerid,COLOR_GREY,"Hб jogadores online da sua organizaзгo.");
}
}
}
}
return 1;
}