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

Tag mismatch error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 03-05-2021 , 04:50   Tag mismatch error
Reply With Quote #1

Hello, I have problem compiling this:

It throws tag mismatch error:

PHP Code:
//// ze_class_zombie_fast.sma
//
// zombie_fast.sma(240) : warning 213: tag mismatch
// Header size:           1672 bytes
// Code size:             7016 bytes
// Data size:             4584 bytes
// Stack/heap size:      16384 bytes
// Total requirements:   29656 bytes
//
// 1 Warning.
// Done.
//
// Compilation Time: 1.2 sec
// ---------------------------------------- 
Line 240:
PHP Code:
set_user_maxspeed(idfloat(zombieclass1_speed)) 
Zombie attributes:
PHP Code:
new const zombieclass1_name[] = "Regular Zombie"
new const zombieclass1_info[] = "=Sprint="
new const zombieclass1_model[] = "gcg_fast"
new const zombieclass1_clawmodel[] = "v_fast_hands.mdl"
const zombieclass1_health 250000

// 
const Float:zombieclass1_speed 280.0

const Float:zombieclass1_gravity 0.8
const Float:zombieclass1_knockback 1.5 
__________________

Last edited by nG_getwreck; 03-05-2021 at 04:51.
nG_getwreck is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 03-05-2021 , 05:25   Re: Tag mismatch error
Reply With Quote #2

zombieclass1_speed is already a float so you don't need to convert it into float again

PHP Code:
set_user_maxspeed(idzombieclass1_speed
__________________
My plugin:
Celena Luna is offline
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 03-05-2021 , 05:47   Re: Tag mismatch error
Reply With Quote #3

Quote:
Originally Posted by Celena Luna View Post
zombieclass1_speed is already a float so you don't need to convert it into float again

PHP Code:
set_user_maxspeed(idzombieclass1_speed
Ohhh thanks, i feel asleep when i was editing that class.
__________________

Last edited by nG_getwreck; 03-05-2021 at 05:47.
nG_getwreck 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 09:43.


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