SendClientMessageToAll doesnt work
#5

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string, sizeof(string), "%s(%u): %s", playername, playerid, text);
    SendClientMessageToAll(-1, string);
    return 1;
}
Try this, I replaced the %i with %u which is playerid, it SHOULD work. My bad before.
Reply


Messages In This Thread
SendClientMessageToAll doesnt work - by CalvinC - 27.12.2014, 12:56
Re: SendClientMessageToAll doesnt work - by jackx3rx - 27.12.2014, 12:57
Re: SendClientMessageToAll doesnt work - by Glossy42O - 27.12.2014, 12:58
Re: SendClientMessageToAll doesnt work - by CalvinC - 27.12.2014, 13:05
Re: SendClientMessageToAll doesnt work - by jackx3rx - 27.12.2014, 13:15
Re: SendClientMessageToAll doesnt work - by CalvinC - 27.12.2014, 13:33
Re: SendClientMessageToAll doesnt work - by jackx3rx - 27.12.2014, 13:36
Re: SendClientMessageToAll doesnt work - by CalvinC - 27.12.2014, 14:20
Re: SendClientMessageToAll doesnt work - by JaydenJason - 27.12.2014, 14:26
Re: SendClientMessageToAll doesnt work - by Facerafter - 27.12.2014, 14:29

Forum Jump:


Users browsing this thread: 3 Guest(s)