Posts: 546
Threads: 22
Joined: Jul 2007
Reputation:
0
by plus i assume you mean add up, or sum. well i haven't heard of an mysql function that does that, so you should :
1. Extract data
2. Alter it (in your case, sum, add up, plus, what is needed)
3. Update data
Posts: 415
Threads: 66
Joined: Apr 2009
Reputation:
0
Aleksandar you made my day ^^
Thanks Izanagi for telling me the information.
Posts: 84
Threads: 9
Joined: Apr 2010
Reputation:
0
if(IsNumeric(inputtext))
{
if(GetPlayerMoney(playerid) < strval(inputtext))
{
SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
}
else
{
GivePlayerMoney(playerid, -moneycheck);
new string2[128];
format(string,300,"UPDATE "SQL_FACTION" SET `FactionBank`=FactionBank + %d WHERE `ID`='2'",strval(inputtext));
mysql_query(string);
format(string,128,"You have just deposit %s into HR313SR Faction Bank",inputtext);
SendClientMessage(playerid,COLOR_YELLOW,string2);
}
}
Posts: 415
Threads: 66
Joined: Apr 2009
Reputation:
0
Aleksander can I ask you one last question? (Thanks Sascha).