SA-MP Forums Archive
Saving a gTeam variable - 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: Saving a gTeam variable (/showthread.php?tid=487895)



Saving a gTeam variable - ZBits - 15.01.2014

Fixed, Code Removed!


Re: Saving a gTeam variable - ZBits - 15.01.2014

Bump


Re: Saving a gTeam variable - SilentSoul - 15.01.2014

You used to receive int data from mysql using mysql_fetch_int("team", pInfo[playerid][pTeam]); then you should use SetPlayerTeam(playerid,pInfo[playerid][pTeam]); as you get it , it won't work with gTeam because it's a global variable default global variables = 0 that's why it won't work!

Edit: if that's not working , make sure it saves the variable at your mysql database


Re: Saving a gTeam variable - ZBits - 15.01.2014

Umm k i'll try that but should my MYSQl table of `team` should be text or intergers?


Re: Saving a gTeam variable - ZBits - 15.01.2014

Need help on this, this has stopped my progress


Re: Saving a gTeam variable - Baines - 16.01.2014

It should be an integer.


Re: Saving a gTeam variable - ZBits - 16.01.2014

I tired it with an integer as well, it doesnt update it.


Re: Saving a gTeam variable - ZBits - 16.01.2014

Fixed, the problem was the comma beforre WHERE