30.03.2013, 17:11
Hi, I'm trying to make a command which sends me a message with all players with a variable on state true.
This is how my code looks:
But It's just sending empty messages.
Any help would be appreciated.
Thanks in advance.
This is how my code looks:
Код:
if(strcmp(cmdtext,"/seeplayers",true) == 0)
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(InEvent[i] == 1)//My variable
{
new name[MAX_PLAYER_NAME], string[50+MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s", name);
SendClientMessage(playerid, WHITE, string);
}
}
return 1;
}
Any help would be appreciated.
Thanks in advance.

