Quote:
Originally Posted by SaraAki
Thank you for helping me.
Cant compile and you can see on this photo why.
|
try with this
PHP Code:
public effect_start(Entity)
{
if(Entity < 0
|| g_roundend)
return
static Float:Origin[3];
entity_get_vector( Entity, 0, Origin );
static __int_Players[32], __int_Count, __int_Team, victim;
__int_Team = get_user_team( Client );
get_players( __int_Players, __int_Count, "a" );
for( new i; i < __int_Count; i++ )
{
victim = __int_Players[i];
if(victim == Entity
|| get_user_team(victim) == __int_Team
|| g_effected[victim]
|| entity_range( Entity, victim ) > RADIUS )
{ continue }
static Float:VictimOrigin[3];
entity_get_vector( victim, 0, VictimOrigin );
static Float:Velocity[3];
get_speed_vector(Origin, VictimOrigin, JUMP_EXP * 5, Velocity);
entity_set_vector( victim, EV_VEC_velocity, Velocity );
entity_set_vector( victim, EV_VEC_puchangle, Float:{125.0,125.0,125.0} );
set_task(3.0, "Shake", victim)
g_effected[victim] = 1
client_cmd(victim, "spk %s", grenadeeffect)
start_sprites[victim] = true
}
}
1 - add the library #<engine>
2 - and post the full error