Raised This Month: $ Target: $400
 0% 

Tag Mismatched


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 06-30-2010 , 03:38   Tag Mismatched
Reply With Quote #1

PHP Code:

// LastRequest Menu
public LastRequest(id)
{    
    
// Show Choosing Message
    
RemoveChoosing(id);
    
set_task(0.1"task_DisplayChoosing"id);
    
    static 
iLenszMenu[400], iKeysiNum;
    
    
iKeys MENU_KEY_0;
    
    
iLen formatex(szMenusizeof(szMenu) - 1"\yLastRequest Menu:^n\rby Shuttle_Wave^n^n");
    
    for(
iNum 0iNum LrGamesiNum++)
    {
        
iKeys |= ( 1<<iNum );
        
iLen += formatex(szMenu[iLen], sizeof(szMenu) - iLen"\r%i. \w%s^n"iNum+1g_szLastRequestGames[iNum]);
    }
    
    
iLen += formatex(szMenu[iLen], sizeof(szMenu) - iLen"^n\r0. \wExit");
    
    
show_menu(idiKeysszMenu, -1"LastRequest Menu");
    
    return 
PLUGIN_HANDLED;

i get
C:\Documents and Settings\Jonathon Leng\Desktop\JailBreak.sma(417) : warning: tag mismatch
C:\Documents and Settings\Jonathon Leng\Desktop\JailBreak.sma(420) : warning: tag mismatch

this is line 417
PHP Code:
for(iNum 0iNum LrGamesiNum++) 
this is line 420
PHP Code:
iLen += formatex(szMenu[iLen], sizeof(szMenu) - iLen"\r%i. \w%s^n"iNum+1g_szLastRequestGames[iNum]); 
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-30-2010 , 06:12   Re: Tag Mismatched
Reply With Quote #2

LrGames and g_szLastRequestGames
SnoW is offline
Send a message via MSN to SnoW
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 06-30-2010 , 21:47   Re: Tag Mismatched
Reply With Quote #3

Quote:
Originally Posted by SnoW View Post
LrGames and g_szLastRequestGames
I dont get it
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-30-2010 , 22:38   Re: Tag Mismatched
Reply With Quote #4

Show us your declarations for those two variables.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 07-01-2010 , 01:28   Re: Tag Mismatched
Reply With Quote #5

PHP Code:
new const g_szLastRequestGames[LrGames][] =
{
    
"Knife Fight",
    
"Shot 4 Shot",
    
"Grenade Battle",
    
"Shooting Frenzy",
    
"Shotty Madness",
    
"Scoutz Supprise"
}; 
PHP Code:
new LrGames:Game
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-01-2010 , 02:17   Re: Tag Mismatched
Reply With Quote #6

PHP Code:
for(iNum 0iNum _:LrGamesiNum++) 
PHP Code:
iLen += formatex(szMenu[iLen], sizeof(szMenu) - iLen"\r%i. \w%s^n"iNum+1g_szLastRequestGames[LrGames:iNum]); 
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-01-2010 , 18:13   Re: Tag Mismatched
Reply With Quote #7

So, what is LrGames defined as? I'm assuming it's an enum but I wouldn't think you could use it as an integer in the for loop.
__________________
fysiks is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-01-2010 , 19:42   Re: Tag Mismatched
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
So, what is LrGames defined as? I'm assuming it's an enum but I wouldn't think you could use it as an integer in the for loop.
IIRC it takes the value that comes next.

Ex.:
Code:
enum Blah
{
  Blah_1,
  Blah_2,
}

Blah == 2
Code:
enum Blah
{
  Blah_1 = -1,
  Blah_2,
  Blah_3,
  Blah_4,
}

Blah == 3
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 07-02-2010 , 03:22   Re: Tag Mismatched
Reply With Quote #9

Quote:
Originally Posted by fysiks View Post
So, what is LrGames defined as? I'm assuming it's an enum but I wouldn't think you could use it as an integer in the for loop.
Yep it is a enum

PHP Code:
enum LrGames
{
    
LR_KNIFE,
    
LR_SHOT,
    
LR_NADE,
    
LR_FRENZY,
    
LR_SHOTTY,
    
LR_SCOUT

__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave 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 14:48.


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