SA-MP Forums Archive
registering file - 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: registering file (/showthread.php?tid=65673)



registering file - My_Waffles_Bitch_L0L - 15.02.2009

ok now i only need one thing more to my admin script, how do i edit the save path of the file when a player registers? the default is in the scriptfiles %s.dudb and when i look in the file, it only says hash_password= but i want more, i want

Level=
VIP=
hash_password=

how can i edit that with dudb/dutils? cuz i use that :P


Re: registering file - Backwardsman97 - 15.02.2009

pawn Код:
//OnPlayerDisconnect
dUserSetINT(ReturnPlayerName(playerid)).("NameInFile",VariableToStore);

//When they login
WhateverVariable = dUserINT(ReturnPlayerName(playerid)).("NameInFile");



Re: registering file - My_Waffles_Bitch_L0L - 15.02.2009

Код:
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(784) : error 017: undefined symbol "WhateverVariable"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(784) : error 017: undefined symbol "ReturnPlayerName"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(785) : error 017: undefined symbol "WhateverVariable"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(785) : error 017: undefined symbol "ReturnPlayerName"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(786) : error 017: undefined symbol "WhateverVariable"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(786) : error 017: undefined symbol "ReturnPlayerName"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(787) : error 017: undefined symbol "WhateverVariable"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(787) : error 017: undefined symbol "ReturnPlayerName"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
srry,but im a bit nooby to this


Re: registering file - Joe Staff - 15.02.2009

-_-

That was a demonstration, you have to change the "Whatevervariable" and things to fit your script.


Re: registering file - My_Waffles_Bitch_L0L - 15.02.2009

Код:
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(784) : error 017: undefined symbol "PlayerVariable"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(784) : error 017: undefined symbol "ReturnPlayerName"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(785) : error 017: undefined symbol "PlayerVariable"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(785) : error 017: undefined symbol "ReturnPlayerName"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(786) : error 017: undefined symbol "PlayerVariable"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(786) : error 017: undefined symbol "ReturnPlayerName"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(787) : error 017: undefined symbol "PlayerVariable"
C:\Users\Martin\Desktop\PUTDETHERINTILSA-MP\WafflesAdmin.pwn(787) : error 017: undefined symbol "ReturnPlayerName"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
-,-


Re: registering file - Joe Staff - 15.02.2009

You don't have ReturnPlayerName function so you have to use a different method.

Don't forget to create the variable before you use it....


Re: registering file - My_Waffles_Bitch_L0L - 15.02.2009

can u do it for me -,-


Re: registering file - Backwardsman97 - 15.02.2009

Quote:
Originally Posted by hctiB_selffaW_yM
can u do it for me -,-
Script request thread.


Re: registering file - My_Waffles_Bitch_L0L - 15.02.2009

i posted, but no one helps me