Dialog help
#2

Actually... It is going to save the score OnPlayerDisconnect (as long as I know), but You need a function which is going to set/load player's latest score, just like the money:

pawn Код:
// Cash
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);

pawn Код:
// Score
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
// This is going to set/load player's latest score, add this under the "GivePlayerMoney" function.

The reason why it's kicking players when they refuse to register/login is; Kick(playerid); function. (When player refuses to register/login).

pawn Код:
if ( !response ) return Kick ( playerid );
// You can remove it and also You can change it.
Also the reason why it's telling You " You have entered an invalid password " is obvious, You've entered an invalid one or maybe while You were editing the script You've changed dialog ids and now it's wrong. Compare Your edited version and the original one, and You'll see.

Tell me if is something else wrong, I'll give my best to help You.
Reply


Messages In This Thread
Dialog help - by Acres - 02.01.2014, 15:32
Re: Dialog help - by Wan - 02.01.2014, 18:38

Forum Jump:


Users browsing this thread: 2 Guest(s)