Raised This Month: $51 Target: $400
 12% 

tag mismatches, need help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
noob
Junior Member
Join Date: Jun 2004
Old 08-22-2004 , 13:54   tag mismatches, need help
Reply With Quote #1

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..

noob is offline
noob
Junior Member
Join Date: Jun 2004
Old 08-23-2004 , 16:38  
Reply With Quote #2

of.. i got it

replaced the GRAVITY with Float:GRAVITY and no more tag mismatches
haven't test it but it should work

thanks for you all for your non-existant help

EDIT: there was some other stuff outside the code i showed here that made the plugin not to work, but that should be fixed now..
noob is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode