Show me - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Show me (
/showthread.php?tid=188256)
Show me -
willsuckformoney - 06.11.2010
Can someone show me how I can do a command using sscanf for playername/id? So you can do something like this:
(INGame Command)
/wave willsuckformoney
or
/wave 0
Re: Show me -
Toni - 06.11.2010
pawn Код:
new id[24] // Optional name or id.
if(sscanf(params, "u", id))
Re: Show me -
willsuckformoney - 06.11.2010
Thanks laday.
Re: Show me -
cessil - 06.11.2010
lol why would you use id[24] when if(sscanf(params, "u", id)) would only fill 1 out of that array.
new id;
if(sscanf(params, "u", id)) {
//error, or make id == closest player
}
//playerid waves at id
Re: Show me -
willsuckformoney - 07.11.2010
Noted^ .