19.01.2010, 15:03
Hello everybody, i'm new here and need some support.
Let's begin with problem. I've taken moderntopia base, and edited it for while, but now I'm having problem with bullet saving. I'm gonna show you guys some lines, maybe you can see the problem.
OnPlayerLogin, It loads data.. and for bullets i have OnPlayerLogin
OnPlayerRequestSpawn(script gives weapon and bullets. Btw, if I replace Scriptbullets with any number it gives this amount bullets.)
And saving on logout
I've noticed on sql that script even won't put any value to that cell. If I add manually there something it still won't give any gun.
Thanks for help.
Let's begin with problem. I've taken moderntopia base, and edited it for while, but now I'm having problem with bullet saving. I'm gonna show you guys some lines, maybe you can see the problem.
OnPlayerLogin, It loads data.. and for bullets i have OnPlayerLogin
Code:
if (rcnt == 73) ScriptBullets[playerid][2] = strval(Field);
Code:
SafeGivePlayerWeapon(playerid, ScriptWeapons[playerid][2], ScriptBullets[playerid][2]);
Code:
MySQLUpdatePlayerInt(query, PlayerInfo[playerid][pSQLID], "Ammo2", ScriptBullets[playerid][2]);
Thanks for help.