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

3 dimensional array errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 01-01-2012 , 23:44   3 dimensional array errors
Reply With Quote #1

I semi fixed it, but i still get warnings. What do they mean?

PHP Code:
new g_szOptionUsedMAX_MENU ][ 33 ] =

    
"false",        //He Nade
    
"false",        //Flashbang
    
"false",        //Frostnade
    
"false",        //155 Extra Hp
    
"false",        //255 Armor
    
"false",        //Juke Boots
    
"false",        //Stealth
    
"false",        //Invincibility
    
"false",        //Awp
    
"false",        //Deagle
    
"false",        //Camouflage
    
"false",        //No Fall Damage
    
"false",        //AntiFlash
    
"false",        //AntiFrost
    
"false",        //SilentFeet
    
"false"            //Respawn

Line 180
PHP Code:
col = ((cs_get_user_moneyid ) >= str_to_num(g_szOptionsAmount[i]) && CheckTeamItem(idi) && g_szOptionUsed[i][id] == false) ? "\w" "\d"
Line 365
PHP Code:
if(g_szOptionUsed[iIndex][id] == true
Line 389
PHP Code:
if(g_szOptionUsed[iIndex][id] == true
Quote:
//// multipagemenu.sma
// C:\Users\Mangolium\Desktop\usb\compiler1\mult ipagemenu.sma(180) : warning 213
: tag mismatch
// C:\Users\Mangolium\Desktop\usb\compiler1\mult ipagemenu.sma(365) : warning 213
: tag mismatch
// C:\Users\Mangolium\Desktop\usb\compiler1\mult ipagemenu.sma(389) : warning 213
: tag mismatch
// Header size: 1132 bytes
// Code size: 9960 bytes
// Data size: 7432 bytes
// Stack/heap size: 16384 bytes; max. usage is unknown, due to recursion
// Total requirements: 34908 bytes
//
// 3 Warnings.
// Done.
//
// Compilation Time: 0.23 sec
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME

Last edited by r4ndomz; 01-01-2012 at 23:57.
r4ndomz is offline
Send a message via Skype™ to r4ndomz
Anonymous
Member
Join Date: Nov 2009
Location: Anonuser.org
Old 01-01-2012 , 23:50   Re: 3 dimensional array errors
Reply With Quote #2

Looks like you have some kind of gay. huehuehue
__________________
This site is filled with shitters who call themselves experts.

Last edited by Anonymous; 01-01-2012 at 23:51.
Anonymous is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-02-2012 , 00:17   Re: 3 dimensional array errors
Reply With Quote #3

when you do string comparation, you sould use
equal( , "false")
or you just declare g_szOptionUsed as Bool:g_bOptionUsed[][] = {false,...}
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>

Last edited by Emp`; 01-02-2012 at 00:30. Reason: fixed variable name
jim_yang is offline
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 01-02-2012 , 08:04   Re: 3 dimensional array errors
Reply With Quote #4

Quote:
Originally Posted by jim_yang View Post
when you do string comparation, you sould use
equal( , "false")
or you just declare g_szOptionUsed as Bool:g_bOptionUsed[][] = {false,...}
So i should add quotes around every time i change the value to false?

i think id rather just make it a bool though, thanks
__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME

Last edited by r4ndomz; 01-02-2012 at 08:05.
r4ndomz is offline
Send a message via Skype™ to r4ndomz
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 07:06.


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