18.05.2013, 22:28
why are the names is wrong?
Example:
Test Has made Test1 Helper
i type /helpers
shows the name of wrong who set by.
Helpers Online:
Test
It need to be Test1
Example:
Test Has made Test1 Helper
i type /helpers
shows the name of wrong who set by.
Helpers Online:
Test
It need to be Test1
pawn Код:
CMD:helpers(playerid)
{
new Count;
new str[45];
new HelperName[MAX_PLAYER_NAME], id;
SendClientMessage(playerid, -1, "Helpers Online:");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if (APlayerData[i][PlayerHelper])
{
GetPlayerName(id, HelperName, MAX_PLAYER_NAME);
Count ++;
format(str, sizeof str, "Helper %s",HelperName);
SendClientMessage(playerid, -1, str);
}
}
if(Count < 1) SendClientMessage(playerid, -1, "No Helpers Online!");
return 1;
}