#include <a_samp>#include <dutils>#include <dudb>#include <dini>new nev[MAX_PLAYER_NAME];new penz[100];#pragma unused ret_memcpypublic OnPlayerDisconnect(playerid){ GetPlayerName(playerid, nev, sizeof(nev)); format(penz, sizeof(penz), \"/Szerver/%s.ini\",nev); if(!dini_Exists(penz)) { } else{ dini_IntSet(penz, \"Score\", GetPlayerMoney(playerid)); }}public OnPlayerConnect(playerid){ GetPlayerName(playerid, nev, sizeof(nev)); format(penz, sizeof(penz), \"/Szerver/%s.ini\",nev); if(!dini_Exists(penz)) { dini_Create(penz); dini_IntSet(penz, \"Score\", 0); SetPlayerMoney(playerid, dini_Int(penz, \"Pénz\")); } else{ SetPlayerMoney(playerid, dini_Int(penz, \"Pénz\")); } return 1;}
#include <a_samp>#include <dutils>#include <dudb>#include <dini>new nev[MAX_PLAYER_NAME];new Pont[100];#pragma unused ret_memcpypublic OnPlayerDisconnect(playerid){ GetPlayerName(playerid, nev, sizeof(nev)); format(Pont, sizeof(Pont), \"/Szerver/%s.ini\",nev); if(!dini_Exists(Pont)) { } else{ dini_IntSet(Pont, \"Score\", GetPlayerScore(playerid)); }}public OnPlayerConnect(playerid){ GetPlayerName(playerid, nev, sizeof(nev)); format(Pont, sizeof(Pont), \"/Szerver/%s.ini\",nev); if(!dini_Exists(Pont)) { dini_Create(Pont); dini_IntSet(Pont, \"Score\", 0); SetPlayerScore(playerid, dini_Int(Pont, \"Score\")); } else{ SetPlayerScore(playerid, dini_Int(Pont, \"Score\")); } return 1;}
nekem nem mükszik a score.:| nem menti le