SA-MP Forums Archive
Problema mysql_get_field - 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: Problema mysql_get_field (/showthread.php?tid=578968)



Problema mysql_get_field - zeth98 - 23.06.2015

I have this on OnGamemModeIit

Код HTML:
mysql_get_field("BankFaction", result);				DynamicFactions[index][fBank] = strval(result);
And when I typed this command

Код HTML:
if(strcmp(cmdtext, "/bankfaction", true) == 0)
	{
		format(string,100,"Money %d -$ ",DynamicFactions[2][fBank]);
     	SendClientMessage(playerid,-1,string);
	}
The message is that "Money 0 -$"

after i typed this command
Код HTML:
	if(strcmp(cmdtext, "/bank1234", true) == 0)
	{
	    DynamicFactions[2][fBank] = 1234;
		fUpdate(2,fBankx);
	 }
Mysql database is updated and i retype this /bankfaction he say "Money 1234 -$"

The problem is when i restarted the variables is 0


Re: Problema mysql_get_field - zeth98 - 23.06.2015

In database i set the bank of faction 2 i setted 332
Everybody know?


Re: Problema mysql_get_field - zeth98 - 23.06.2015

What is wrong?


Re: Problema mysql_get_field - zeth98 - 24.06.2015

What I need to do?