Jump to content

Question

Posted

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

Posted

eu zic mai bine sa folosesti BUD pentru accounts :) e mult mai simplu si eficient , sqlite sa il folosesti pentru systeme gen: clan , gang , masini personale etc

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.