Quote:
Originally Posted by Jelly23
Why are you using pVars?
PHP Code:
GetPVarInt(playerid, "pSafeID");
GetPVarInt(playerid, "robbedMoney");
GetPVarInt(playerid, "safeMode");
GetPVarInt(playerid, "tmp_safe");
What is this? Why waste 128 cells (Pretty much everywhere in the script)? Also, consider updating your MySQL plugin.
PHP Code:
new str[128];
format(str, sizeof(str), "DELETE FROM `xrob_safes` WHERE `ID`=%d", sid);
mysql_query(mysqlB, str);
Also, using stock keyword isn't even needed, just leave the functions your FS will use.
|
I used PVars for temporary needed variables. Used and deleted when it's done.
Yeah cell lenghts are too much you're right. I copied and pasted MySQL queries for gain time. I forgot to change cell lengths.
Thank you.