Rimmon Posted May 2, 2012 Report Share Posted May 2, 2012 Am o problema cu scorul fac acel GM RST si e pe baza dini dar nu se salveaza scorul uitati cum am facutLa OnPlayerDisconnect[pawn]dini_IntSet(file, "Score",GetPlayerScore(playerid));[/pawn]si la dialogul de login am pus asa[pawn]SetPlayerScore(playerid, dini_Int(file, "Score") + GetPlayerScore(playerid));[/pawn]Iar dupa ce dau restart la sv scorul se pune la 0 iar Massari e curva mea Link to comment Share on other sites More sharing options...
TzAkS Posted May 2, 2012 Report Share Posted May 2, 2012 Pune la OnPlayerConnect nu la dialogul de login. Si fa cu o variabila sa salvezi si sa il iei din fisier. Link to comment Share on other sites More sharing options...
Rimmon Posted May 2, 2012 Author Report Share Posted May 2, 2012 ok mersi Il fac acum si revin cu edit Massari e curva mea Link to comment Share on other sites More sharing options...
Question
Rimmon
Am o problema cu scorul fac acel GM RST si e pe baza dini dar nu se salveaza scorul uitati cum am facut
La OnPlayerDisconnect
[pawn]dini_IntSet(file, "Score",GetPlayerScore(playerid));[/pawn]
si la dialogul de login am pus asa
[pawn]SetPlayerScore(playerid, dini_Int(file, "Score") + GetPlayerScore(playerid));[/pawn]
Iar dupa ce dau restart la sv scorul se pune la 0 iar
Massari e curva mea
Link to comment
Share on other sites
2 answers to this question
Recommended Posts