Begginner problem with SendClientMessage
#3

You need first to format the string before you use it !

pawn Код:
if (strcmp("/location", cmdtext, true, 10) == 0)
    {
        new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid, x,y,z);
        new string[50];
        format(string,sizeof(string),"%f,%f,%f",x,y,z);
        SendClientMessage(playerid, COLOR_RED, string);
        return 1;
    }
Reply


Messages In This Thread
Begginner problem with SendClientMessage - by Sam5513 - 09.11.2012, 10:35
Re: Begginner problem with SendClientMessage - by mSlat3r - 09.11.2012, 10:36
Re: Begginner problem with SendClientMessage - by doreto - 09.11.2012, 10:38
Re: Begginner problem with SendClientMessage - by Sam5513 - 09.11.2012, 10:43
Re: Begginner problem with SendClientMessage - by Konstantinos - 09.11.2012, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)