SA-MP Forums Archive
.. has been available to capture - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: .. has been available to capture (/showthread.php?tid=476489)



.. has been available to capture - Lisaax - 18.11.2013

How can i put it that there is standing like ' Cracklab has been availble to capture etc'' There is just standing this
Has been available to capture


AW: .. has been available to capture - Skimmer - 18.11.2013

You can use format() to format strings.
pawn Код:
new pName[MAX_PLAYER_NAME]; // Creating a variable, which will keep player name
new string[128]; // A variable to format the string.
GetPlayerName(playerid, pName, sizeof(pName)); // Saving player name into the variable
format(string, sizeof(string), "%s has been availble to capture.", pName); // Formatting done!
SendClientMessage(playerid, -1, string); // Sending the string to player
This will help you https://sampwiki.blast.hk/wiki/Format


Re: .. has been available to capture - Lisaax - 18.11.2013

how can i put that in? so its working? Hole code?


AW: .. has been available to capture - Skimmer - 18.11.2013

Just copy the script and pase it. It'll work.

But remember the playerid returns the name of user. It may be that you return targetname.