What is a better method of saving?
#8

Quote:
Originally Posted by Antonio [G-RP]
Посмотреть сообщение
Do you mean like this..?

pawn Код:
new string[650];

    format(string, sizeof(string), "UPDATE `accounts` SET `level` = %d, `admin` = %d, `cash` = %d, `bank` = %d, `skin` = %d, `sex` = %d, `age` = %d, ",PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pAdmin], \
    PlayerInfo[playerid][pCash], PlayerInfo[playerid][pBank], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pSex],  PlayerInfo[playerid][pAge]);

    format(string, sizeof(string), "%s`pos_x` = %f, `pos_y` = %f, `pos_z` = %f, `interior` = %d, `faction` = %d, `rank` = %d, `mask` = %d, ",string, PlayerInfo[playerid][pPos_x], \
    PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], PlayerInfo[playerid][pInt], PlayerInfo[playerid][pFaction], PlayerInfo[playerid][pRank], PlayerInfo[playerid][pMask]);
I'm pretty sure this is the more efficient method.
i recommend you to use this, it's easier and more eficcient

bye!
Reply


Messages In This Thread
What is a better method of saving? - by Scenario - 10.02.2011, 23:37
Re: What is a better method of saving? - by Antonio [G-RP] - 10.02.2011, 23:57
Re: What is a better method of saving? - by Scenario - 11.02.2011, 00:30
Re: What is a better method of saving? - by Antonio [G-RP] - 11.02.2011, 00:50
Re: What is a better method of saving? - by Krx17 - 11.02.2011, 01:25
Re: What is a better method of saving? - by cessil - 11.02.2011, 01:51
Re: What is a better method of saving? - by Kyosaur - 11.02.2011, 02:07
Re: What is a better method of saving? - by H7_Tr0m - 11.02.2011, 03:31
Re: What is a better method of saving? - by -Rebel Son- - 11.02.2011, 03:35
Re: What is a better method of saving? - by Antonio [G-RP] - 11.02.2011, 04:05

Forum Jump:


Users browsing this thread: 3 Guest(s)