30.08.2010, 10:12
Well i'm scripting in a simple teleport, but i've got a problem.
When the player teleports to the position given in the script, i want it to send a message to all the people in the server.
So this is what i've done:
As you can see i used '%d' just hoping it would give the players name, but no... didn't work like that, so now when ever i type it this comes up:
Anyone know what i need to do/add to that script so the players name will show up instead of all those numbers?
Thanks
When the player teleports to the position given in the script, i want it to send a message to all the people in the server.
So this is what i've done:
Код:
if(strcmp(cmd, "/lsairport", true) == 0) { SetPlayerPos(playerid,1984.3177,-2473.2759,13.5469); SendClientMessage(playerid, COLOR_BRIGHTRED,"Welcome to Los Santos Airport!"); SendClientMessageToAll(COLOR_PINK,"%d Has Teleport To LS Airport!"); return 1; }
Anyone know what i need to do/add to that script so the players name will show up instead of all those numbers?
Thanks