Raised This Month: $ Target: $400
 0% 

Solved Showing warning: Tag mismatch on line 48 and 49


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grovliom
Member
Join Date: Mar 2020
Location: somewhere in Serbia
Old 04-22-2020 , 12:48   Showing warning: Tag mismatch on line 48 and 49
Reply With Quote #1

Code:
#include <amxmodx> #include <fun> new bert new const sounds[][] = { "randomize/sound1.wav" , "randomize/sound2.wav" , "randomize/sound3.wav" , "randomize/sound4.wav" , "randomize/sound5.wav" , "randomize/sound6.wav" , "randomize/sound7.wav" , "randomize/sound8.wav" } public plugin_precache() {     precache_sound(sounds[0][0]) } public plugin_init() {     register_clcmd("say /rn", "test") } public number(id) {     new snd = random_num(0,7)     new num = random_num(0, 1000)     client_print(id, print_center, "Your Random Number Is %d", num)     client_cmd(id, "spk %s", sounds[snd]) } public menustart(id) {     set_task(1.5, "kosa") } public remove(id) {     remove_task(1, 0) } public kosa(id) {     client_print(id, print_center, "If you want to spin again type : /rn") } public test(id) { bert = random_num(1, 7) if(is_user_alive(id)) set_task(0.1, "number", 1, "", 0, "b"); set_task(bert, "remove"); set_task(bert, "menustart"); }

shows tag missmatch here :

Code:
public test(id) { bert = random_num(1, 7) if(is_user_alive(id)) set_task(0.1, "number", 1, "", 0, "b"); set_task(bert, "remove"); set_task(bert, "menustart"); }

Last edited by Grovliom; 04-22-2020 at 13:53.
Grovliom is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-22-2020 , 12:53   Re: Showing warning: Tag mismatch on line 48 and 49
Reply With Quote #2

bert should be a float.

PHP Code:
new Float:bert 
PHP Code:
bert random_float(1.07.0); 
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Grovliom
Member
Join Date: Mar 2020
Location: somewhere in Serbia
Old 04-22-2020 , 12:59   Re: Showing warning: Tag mismatch on line 48 and 49
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
bert should be a float.

PHP Code:
new Float:bert 
PHP Code:
bert random_float(1.07.0); 
I fixed it THanks!

Last edited by Grovliom; 04-22-2020 at 13:00.
Grovliom is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-22-2020 , 13:07   Re: Showing warning: Tag mismatch on line 48 and 49
Reply With Quote #4

You can also just declare bert localy instead of globaly, since you only use it in one function.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 03:17.


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