- 0
Problema SQLite
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
WoZzYDJ
Salut!am un server ce functioneaza pe SQLite cu admin vip login etc.... dar problema mea e ca nu imi salveaza datele jucatorului adica contu il salveaza se creeaza in .db pot sa ma loghez dar nu se salveaza banii,adminu,scoru,killurile si nustiu ce sa fac ca am cautat multe chestii pe net uitati aici cum am la OnPlayerDisconnect:
[pawn]public OnPlayerDisconnect(playerid, reason) {
if( P_DATA [ playerid ] [ Logat ] == 1 ) {
new Query [ 512 ] ,
h , m , s ;
TotalGametime ( playerid , h , m , s ) ;
format ( Query , sizeof ( Query ) ,
"UPDATE `Jucatori` SET `Ore` = '%d',`Minute` = '%d',`Secunde` = '%d',`Bani` = '%d',`Ucideri` = '%d',`pAdmin` = '%d',`pVip` = '%d',`Decese` = '%d' = '%d' WHERE `Nume` = '%s'"
, h , m , s , GetPlayerMoney( playerid ) , P_DATA [ playerid ] [ Ucideri ] , P_DATA [ playerid ] [ pAdmin ] , P_DATA [ playerid ] [ pVip ] , P_DATA [ playerid ] [ Decese ] , P_DATA [ playerid ] [ Nume ] ) ;
P_DATA [ playerid ][ Logat ] = 1 ;
db_free_result ( db_query ( Conturi , Query ) ) ; }
return ( 1 ) ; }[/pawn]
Care ar fi problema?
1 answer to this question
Recommended Posts