Get Player Name? Or?
#1

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:
Код:
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;
	}
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
Reply


Messages In This Thread
Get Player Name? Or? - by Quest123 - 30.08.2010, 10:12
Re: Get Player Name? Or? - by [XST]O_x - 30.08.2010, 10:14
Re: Get Player Name? Or? - by Bumbis - 30.08.2010, 10:14
Re: Get Player Name? Or? - by Retardedwolf - 30.08.2010, 10:17
Re: Get Player Name? Or? - by Quest123 - 30.08.2010, 10:25
Re: Get Player Name? Or? - by Retardedwolf - 30.08.2010, 10:25
Re: Get Player Name? Or? - by Bumbis - 30.08.2010, 10:26
Re: Get Player Name? Or? - by Quest123 - 30.08.2010, 10:31

Forum Jump:


Users browsing this thread: 1 Guest(s)