[FilterScript] xRobbery - Safe Robbery System // by XpDeviL
#5

Quote:
Originally Posted by Jelly23
View Post
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(strsizeof(str), "DELETE FROM `xrob_safes` WHERE `ID`=%d"sid);
mysql_query(mysqlBstr); 
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)