Quote:
Originally Posted by CreativeTR
PHP Code:
set_user_gravity(id, 0.8) //this may be error set_user_gravity(id, Float:0.8) //the best way to be sure
but also
PHP Code:
new p_Gravity[MAX_PLAYERS] = 0.8 //this may be error new p_Gravity[MAX_PLAYERS] = float:0.8 //the best way to be sure ("float" for defination, "Float" for function - upper case)
|
Makes no sense just like Hamlet said.
Quote:
Originally Posted by CreativeTR
PHP Code:
set_user_health(id, get_user_health(id) + 50) set_user_armor(id, get_user_armor(id) + 50) p_UsrXP[id] = p_UserXP[id] + 50
to
PHP Code:
new i_Val = 50 set_user_health(id, get_user_health(id) + i_Val) set_user_armor(id, get_user_armor(id) + i_Val) p_UsrXP[id] += i_Val
|
That's bad practice, creating a variable costs you.
Quote:
Originally Posted by CreativeTR
PHP Code:
#define MAX_PLAYERS 33 new cvar_max_money new p_Money[MAX_PLAYERS]
|
Max Players is 32, you would do
Code:
#define MAX_PLAYERS 32
new cvar_max_money
new p_Money[MAX_PLAYERS + 1]
__________________