31.12.2014, 21:21
About your DIALOG_REGISTER
Basically what you do is:
Write A in the file with value : 0
Write B in the file with value : 2
Then you call in the saving function that saves the player data. That function does this:
Write A in the file with value : [whatever value the variable has at that very moment]
Write B in the file with value : [whatever value the variable has at that very moment]
Since the player just registered, you overwrite the file twice with the exact same data. Not wrong, but a useless thing to do.
Can you show me the following function?:
Basically what you do is:
Write A in the file with value : 0
Write B in the file with value : 2
Then you call in the saving function that saves the player data. That function does this:
Write A in the file with value : [whatever value the variable has at that very moment]
Write B in the file with value : [whatever value the variable has at that very moment]
Since the player just registered, you overwrite the file twice with the exact same data. Not wrong, but a useless thing to do.
Can you show me the following function?:
pawn Код:
public LoadUser_data(playerid, name[], value[])