SA-MP Forums Archive
Help| How to do that..? - 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: Help| How to do that..? (/showthread.php?tid=468449)



Help| How to do that..? - NeyMar96 - 08.10.2013

How to give id to player who register to server and to save his user number in file?

sorry for bad english


Re: Help| How to do that..? - Scrillex - 08.10.2013

you are thinking like unique player id? it will not show on tab anyway... Or save files by player name?


Re: Help| How to do that..? - NeyMar96 - 08.10.2013

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
you are thinking like unique player id? it will not show on tab anyway... Or save files by player name?
No.
I want to create a new id number to everybody who register to server and to save this number in variable and file


Re: Help| How to do that..? - Scrillex - 08.10.2013

It doesn't makes no logic.. Because there is no point of doing it but okay..

Y_ini
pawn Код:
new pid;
                pid=  1 + random(6);
                PlayerInfo[playerid][NewID] = pid;
enum
pID[11],

Load
INI_String("NewID",PlayerInfo[playerid][NewID],11);
The rest think by your self