okay.. i'm kinda new to small and this is my first plugin
now, when i compile the sma it gives me 2 tag mismatches and in server it does nothing
the whole plugin should change the gravity for 1 person for 3 secs
i don't think i need to post all of the code..
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define GRAVITY 700
#define TIME 3.0
Code:
new i
for( i = 0; i < 1; i++ )
{
if(containi(said,phrase[i]) != -1)
{
new player = cmd_target(id,name,3)
if (!player) return PLUGIN_HANDLED
set_user_gravity(player,GRAVITY) // <- tag mismatch #1
set_task(TIME,"grav_back",0,"",0,"")
}
}
Code:
public grav_back(id)
{
new old_gravity = get_cvar_num("sv_gravity")
new name[32]
new player = cmd_target(id,name,3)
if (!player) return PLUGIN_HANDLED
set_user_gravity(player,old_gravity) // <- tag mismatch #2
return PLUGIN_HANDLED
}
took rather big amount of the code from other plugins so i don't know if they are arguing with each other..