change this code - 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: change this code (
/showthread.php?tid=372971)
change this code -
ZBits - 28.08.2012
pawn Код:
dcmd_area(playerid, params[])
{
new target;
if(sscanf(params,"u",target)) return SendClientMessage(playerid,0xFFFFFFFF,"USAGE: /area <playerid>");
new string[200], Name[MAX_PLAYER_NAME],zone[MAX_ZONE_NAME];
GetPlayerName(target, Name, MAX_PLAYER_NAME);
GetPlayer2DZone(target, zone, MAX_ZONE_NAME);
format(string, sizeof(string), "%s is at %s.", Name,zone);
SendClientMessage(playerid,COLOR_SININE,string);
return 1;
}
you see the message %s is at %s i want this to be %s(ID
![Smiley](images/smilies/smile.png)
is at %s can anyone do this for me i tired but its not working for me
Re: change this code -
C00K13M0N$73R - 28.08.2012
pawn Код:
dcmd_area(playerid, params[])
{
new target;
if(sscanf(params,"u",target)) return SendClientMessage(playerid,0xFFFFFFFF,"USAGE: /area <playerid>");
new string[200], Name[MAX_PLAYER_NAME],zone[MAX_ZONE_NAME];
GetPlayerName(target, Name, MAX_PLAYER_NAME);
GetPlayer2DZone(target, zone, MAX_ZONE_NAME);
format(string, sizeof(string), "%s(ID %d) is at %s.", Name,target,zone);
SendClientMessage(playerid,COLOR_SININE,string);
return 1;
}