how to know player's id from his name ? - 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: how to know player's id from his name ? (
/showthread.php?tid=458798)
how to know player's id from his name ? -
Chrisis - 18.08.2013
is there any way i can know some one's id from his sa-mp name ? maybe a function or something ?
Re: how to know player's id from his name ? -
RedJohn - 18.08.2013
But... why?
Re: how to know player's id from his name ? -
Edix - 18.08.2013
make a loop through all the id's and compare the names
Re: how to know player's id from his name ? -
Vince - 18.08.2013
Use sscanf.
Re: how to know player's id from his name ? -
Chrisis - 18.08.2013
Quote:
Originally Posted by Edix
make a loop through all the id's and compare the names 
|
how ? and h'mm ... isn't this gonna lag the server ?
Re: how to know player's id from his name ? -
RedJohn - 18.08.2013
https://sampforum.blast.hk/showthread.php?pid=2456310#pid2456310
Re: how to know player's id from his name ? -
arakuta - 18.08.2013
Quote:
Originally Posted by Vince
Use sscanf.
|
Thats why you are a godfather :P
@topic
SSCANF finds a playerid even if you type a part of his name.
Re: how to know player's id from his name ? -
fiki574 - 18.08.2013
nvm..