SA-MP Forums Archive
is that impossibal? - 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: is that impossibal? (/showthread.php?tid=280144)



is that impossibal? - [MKD]Max - 30.08.2011

can i do like this


new pname[24];
new swatname[24];

GetPlayerName(playerid,pname,24);
GetPlayerName(playerid,swatname,24);


can i get 2 players name with playerid and its work and show me when i do for e.x

format(string,sizeof(string),"%s(%d) Has Jailed %s(%d)",swatname,playerid,pname,playerid);

is that work and can show me swat id alone and jaild player alone


Re: is that impossibal? - [MWR]Blood - 30.08.2011

No.
You have to define another id.


Re: is that impossibal? - [MKD]Max - 31.08.2011

and how i can define another id and its work perfect 100%


Re: is that impossibal? - =WoR=Varth - 31.08.2011

pawn Код:
new pname[24];
new swatname[24];
new toplayerid;//You should set this by your own.

GetPlayerName(playerid,pname,24);
GetPlayerName(toplayerid,swatname,24);

format(string,sizeof(string),"%s(%d) Has Jailed %s(%d)",swatname,playerid,pname,toplayerid);