09.11.2012, 10:35
Hello coders.
I am new to pawno as I have been working on c++ console projects so far. I wanted to create a command that would tell the user his location coordinates. Although when I type the command, it does not really work. I have been searching all over ****** to find some tutorial on variables in sendclientmessage but I couldn't find anything. So, please try and help me real quick. Thank you in advance.
I am new to pawno as I have been working on c++ console projects so far. I wanted to create a command that would tell the user his location coordinates. Although when I type the command, it does not really work. I have been searching all over ****** to find some tutorial on variables in sendclientmessage but I couldn't find anything. So, please try and help me real quick. Thank you in advance.
Код:
if (strcmp("/location", cmdtext, true, 10) == 0) { new float: x,y,z; GetPlayerPos(playerid, x,y,z); new string[50]="%f,%f,%f"; SendClientMessage(playerid, COLOR_RED, string); return 1; }