SA-MP Forums Archive
Number checking - 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: Number checking (/showthread.php?tid=91238)



Number checking - kLx - 13.08.2009

Hies

I'm creating phone system, and I've stuck on one thing. I need give all players unique number - but how can i do it?
I guess something with:
Код:
	new numb = 1000+ random(9999);
  dini_IntSet("numeriai.ini", "PlayerName(playerid)", numb);
and how to check on the "numb" if the number is'nt in use from "numeriai.ini" file?

Thanks,
Simas.