Quote:
Originally Posted by JustMe.77
Everytime you start an event, you create the Mappings.
Start a few Events and you'll have FPS Lags / reach the maximum create objects (1000)
|
Any suggestions to improve?
Quote:
Originally Posted by Dayrion
PHP код:
if(weapon < 0 || weapon > 46) return SCM(playerid,-1,"{f00f00}[ERROR]: {F00f00}Invalid WeaponID");
Also id between 19 & 21 are invalid:
PHP код:
IsValidWeapon(weaponid)
return (0 <= weaponid <= 46) && !(19 <= weaponid <= 21) ? true : false;
PHP код:
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
It's better to write 100.0 since the parameter is a float. I know it's not very important but it's better to take a good habit.
PHP код:
new InEvent[MAX_PLAYERS]; //Checking player if he is in/out event.
new EventOpened[MAX_PLAYERS]; //Checking if Event is opened to join it.
This can be declared as a boolean and used as such.
Also declaring variables like this is more clear (it's my own opinion)
PHP код:
new
FirstVariable,
SecondVariable,
LastVariable;
|
Thanks very much! i'd improve it in up coming version!
Thanks for rating it