Raised This Month: $ Target: $400
 0% 

problem with the array in if


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SylvertCs
BANNED
Join Date: Sep 2009
Location: San Nicolas-Buenos Aires
Old 02-05-2010 , 13:01   problem with the array in if
Reply With Quote #1

PHP Code:
// Class List
 
for (class = 0; class < g_zclass_i; class++)
 {
  
// Retrieve name and info
  
ArrayGetString(g_zclass_name, class, buffercharsmax(buffer))
  
ArrayGetString(g_zclass_info, class, buffer2charsmax(buffer2))
  
ArrayGetString(g_zclass_lvl, class, buffer3charsmax(buffer3))
  
  
// Add to menu
  
if(Lvl[id] >= g_zclass_lvl[class])//line  3425
  
{
   if (class == 
g_zombieclassnext[id])
    
formatex(menucharsmax(menu), "\d%s %sr(\yLvl:\w%d\r)"bufferbuffer2,buffer3)
   else
    
formatex(menucharsmax(menu), "%s \y%sr(\yLvl:\w%d\r)"bufferbuffer2,buffer3)
  }
  else
   
formatex(menucharsmax(menu), "%s \y%s\r(\yLvl:\w%d\r)"bufferbuffer2,buffer3)
  
  
buffer[0] = class
  
buffer[1] = 0
  buffer
[3] = class
  
menu_additem(menuidmenubuffer)
 } 
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team
Error
Invalid subscript (not an array or too many subscripts): "g_zclass_lvl" on line 3425
Warning
Expression has no effect on line 3425
Error
Expected token";"but found "]" on line 3425
Error
Invalid expressionassumed zero on line 3425
Error
Too many error messages on one line on line 3425
Compilation aborted
.
4 Errors.
Could not locate output file C:\Documents and Settings\Administrador\Escritorio\zp_nuevo.amx (compile failed). 
SylvertCs is offline
Send a message via MSN to SylvertCs
 



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


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