how to know player's id from his name ?
#1

is there any way i can know some one's id from his sa-mp name ? maybe a function or something ?
Reply
#2

But... why?
Reply
#3

make a loop through all the id's and compare the names
Reply
#4

Use sscanf.
Reply
#5

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 ?
Reply
#6

https://sampforum.blast.hk/showthread.php?pid=2456310#pid2456310
Reply
#7

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.
Reply
#8

nvm..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)