Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
how to know player's id from his name ?
Chrisis
Big Clucker
Posts: 73
Threads: 12
Joined: Jun 2013
Reputation:
0
#1
18.08.2013, 16:39
is there any way i can know some one's id from his sa-mp name ? maybe a function or something ?
Find
Reply
RedJohn
Gangsta
Posts: 565
Threads: 32
Joined: Jul 2012
Reputation:
0
#2
18.08.2013, 16:44
But... why?
Find
Reply
Edix
Big Clucker
Posts: 134
Threads: 5
Joined: Nov 2009
Reputation:
0
#3
18.08.2013, 16:49
make a loop through all the id's and compare the names
Find
Reply
Vince
Spam Machine
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
#4
18.08.2013, 16:51
Use sscanf.
Find
Reply
Chrisis
Big Clucker
Posts: 73
Threads: 12
Joined: Jun 2013
Reputation:
0
#5
18.08.2013, 16:52
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 ?
Find
Reply
RedJohn
Gangsta
Posts: 565
Threads: 32
Joined: Jul 2012
Reputation:
0
#6
18.08.2013, 16:59
https://sampforum.blast.hk/showthread.php?pid=2456310#pid2456310
Find
Reply
arakuta
High-roller
Posts: 2,181
Threads: 98
Joined: Jan 2011
Reputation:
0
#7
18.08.2013, 17:07
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.
Find
Reply
fiki574
Gangsta
Posts: 857
Threads: 60
Joined: Mar 2011
Reputation:
0
#8
18.08.2013, 17:35
(
Последний раз редактировалось fiki574; 25.11.2013 в 20:05.
)
nvm..
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 4 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help