08.09.2012, 09:34
How can i convert LoadPlayer(playerid) to mysql?
See the code below
I just wanted to know whether it is 'UPDATE' 'SELECT' or "INSERT INTO" ?
Which one of these when loading something?
See the code below
pawn Код:
LoadPlayer(playerid){
new playername[MAX_PLAYER_NAME],file[256];
GetPlayerName(playerid, playername, sizeof(playername));
format(file,256,"/ladmin/users/%s.sav",udb_encode(playername));
if(udb_Exists(PlayerName2(playerid))) {
PlayerInfo[playerid][name] = playername;
PlayerInfo[playerid][pcash] = (dUserINT(PlayerName2(playerid)).("Money"));
PlayerInfo[playerid][bank] = (dUserINT(PlayerName2(playerid)).("Bank"));
PlayerInfo[playerid][bowner] = (dUserINT(PlayerName2(playerid)).("bowner"));
PlayerInfo[playerid][bowned] = (dUserINT(PlayerName2(playerid)).("bowned"));
PlayerInfo[playerid][weed] = (dUserINT(PlayerName2(playerid)).("weed"));
PlayerInfo[playerid][condoms] = (dUserINT(PlayerName2(playerid)).("Condoms"));
PlayerInfo[playerid][inalcatraz] = (dUserINT(PlayerName2(playerid)).("inalcatraz"));
Which one of these when loading something?