First off, you have done you password success/failure dialogs yet - and you've never spawned the player anywhere. Just a note.
____________________________________________ Anyway, your problem persists in the method you're using to get the player's money. GetPlayerMoney (which is the function you're using under OnPlayerDisconnect, and writing to the player file) returns just that - the player's money. From the green hud in the top right. Problem is, you never properly used GivePlayerMoney, so that green cash counter remained at zero. Thus zero is what was written to your files. Under OnDialogResponse, change pawn Код:
pawn Код:
pawn Код:
Add this to OnPlayerSpawn, pawn Код:
|