SA-MP Forums Archive
organization/faction bank problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: organization/faction bank problem (/showthread.php?tid=312198)



organization/faction bank problem [FIXED] - Tanush123 - 20.01.2012

Fixed


Re: organization/faction bank problem - Tanush123 - 20.01.2012

help please?


Re: organization/faction bank problem - Snowman12 - 20.01.2012

lmfao! Bro... You cannot use '+' '=' in MySQL. Should be more like:

pawn Код:
do all math outside.

format(str,sizeof(string),"UPDATE `orgs` SET Bank = '%d' WHERE OrgID = '%d'",MATH,ID);



Re: organization/faction bank problem - Tanush123 - 20.01.2012

pawn Код:
UPDATE orgs SET Bank = '%d'
will just set the "Bank" to w/e cash the player types, right? I want if player types a number it just Adds the number they type


Re: organization/faction bank problem - Tanush123 - 21.01.2012

bump


Re: organization/faction bank problem - Tanush123 - 21.01.2012

Please help? now i tryed
pawn Код:
format(str,sizeof(str),"UPDATE `orgs` SET `Bank` = '%d' WHERE `Orgid` = '%d'",OrgInfo[cpid[playerid]][Bank],cpid[playerid]);
mysql_query(str);
but it still wont work
i look at the organization information and that gets updated but not the mysql part