Raised This Month: $ Target: $400
 0% 

help with arrays and vars


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mexykanu
Member
Join Date: Oct 2006
Old 02-10-2007 , 16:24   help with arrays and vars
Reply With Quote #1

i'm trying to make something to give people weapons.

i've given at the begining of the plugin the var new g_weapon_name[20]
now in the "main" public i'm trying to look in g_weapon_name, as folows:

Code:
if(g_weapon_name=="m4a1") {
        give_item(id,CSW_M4A1)
} 
else {
if
etc etc etc

but it won't work... it gives me this message: "Array must be indexed (variable g_weapon_name)"
mexykanu is offline
 


Thread Tools
Display Modes

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 00:44.


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