Raised This Month: $ Target: $400
 0% 

Problem with array (its not a n00b question)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Speed!
BANNED
Join Date: Jan 2009
Old 01-15-2009 , 00:43   Problem with array (its not a n00b question)
Reply With Quote #1

I have this
PHP Code:
new const WEAPONPRICES[][] = { """0""""0""""0""""0""0",
"""0""0""0""0""0""0",
"0""0""0""0""0",
"150""0""0""0""""0",
"0""0""""0" 
when i use this, it works
PHP Code:
        static weapon
        weapon 
get_weaponid(g_primary_items[weap])
        
client_print(idprint_console"%s"WEAPONPRICES[weapon]) 
but if i do this

PHP Code:
        static weapon
        weapon 
get_weaponid(g_primary_items[weap])
        static 
price
        price 
WEAPONPRICES[weapon
it says

Quote:
Error: Must be assigned to an array on line (doesent matter what line)
plz help
Speed! is offline
 



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 01:41.


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