Question. - 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: Question. (
/showthread.php?tid=77900)
Question. -
Hot - 15.05.2009
How can I make the computer reconize that after the /suspect command the player id?
I mean, "SEE" the player id after the command.
Sorry for my bad english

. Please if you have the answer, help me

.
Re: Question. -
Weirdosport - 15.05.2009
You need to use either strtok or sscanf, both are listed on the wiki.
Re: Question. -
Hot - 15.05.2009
Okay, thanks for the help, but, if I want to set the player position of the select player.
I mean: /suspect 0 <--- put the ID 0 at some place.
I can't use SetPlayerPos(PLAYERID, ..., ..., ...)
What do I use in the place of PLayerid?
Re: Question. -
Hot - 15.05.2009
The only way to you guys answer me is double-posting.
Re: Question. -
Jefff - 15.05.2009
Quote:
Originally Posted by Hot
Okay, thanks for the help, but, if I want to set the player position of the select player.
I mean: /suspect 0 <--- put the ID 0 at some place.
I can't use SetPlayerPos(PLAYERID, ..., ..., ...)
What do I use in the place of PLayerid?
|
ekhm why u cant use SetPlayerPos?
Код:
SetPlayerPos(giveplayerid, X,Y,Z);
Re: Question. -
CJ101 - 15.05.2009
Код:
tmp = strtok(cmdtext, idx);
new otherplayer = strval(tmp);
using these two lines, the ID will be stored into otherplayer.
So,
Код:
SetWantedLervel(otherplayer,5);
something like that.