I don't understand why i am getting this.
#2

You cannot format a string inside of SendClientMessage. Use this instead:

pawn Код:
new Float:x, Float:y, Float:z, string[128];
                    GetPlayerPos(playerid, x, y, z);
                    if(IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
                    {
                     format(string, sizeof(string), "%s has used their authorization card to open the door.", szPlayerName);
                     SendClientMessage(playerid, COLOR_PURPLE, string);
                    }
                }
            }
Reply


Messages In This Thread
I don't understand why i am getting this. - by Robert_Crawford - 11.03.2012, 01:15
Re: I don't understand why i am getting this. - by jameskmonger - 11.03.2012, 01:18
Re: I don't understand why i am getting this. - by Robert_Crawford - 11.03.2012, 01:51
Re: I don't understand why i am getting this. - by new121 - 11.03.2012, 03:05
Re: I don't understand why i am getting this. - by Nicholas. - 11.03.2012, 03:07
Re: I don't understand why i am getting this. - by eesh - 11.03.2012, 03:07
Re: I don't understand why i am getting this. - by new121 - 11.03.2012, 03:13
Re: I don't understand why i am getting this. - by jameskmonger - 11.03.2012, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)