09.04.2014, 18:43
(
Последний раз редактировалось Dignity; 10.04.2014 в 07:52.
)
EDIT:
Exactly what arakuta and Standford said.
Fixed code:
Quote:
This is the correct way to use a function.
pawn Код:
pawn Код:
|
Quote:
The string should be something like this:-
(according to your getplayername) pawn Код:
|
Fixed code:
pawn Код:
CMD:admins(playerid, params[])
{
new sendername[MAX_PLAYER_NAME],string[64 + MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 100, "Online Admins: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
}
}
}
return 1;
}