registering file
#1

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
Reply
#2

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

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

Код:
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
Reply
#4

-_-

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

Код:
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.
-,-
Reply
#6

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

can u do it for me -,-
Reply
#8

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

i posted, but no one helps me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)