Raised This Month: $ Target: $400
 0% 

Equality with array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
[WbOF]LuZiFeR
AlliedModders Donor
Join Date: Jun 2004
Old 04-17-2005 , 06:05   Equality with array
Reply With Quote #1

A little noob-question

I use

Code:
new CC[15] get_user_ip(id,userip,31,1) geoip_country(userip,CC)

to catch a players country...

Now, i will compare this with a variable (i.e. "United States" )

Code:
if (CC == "United States") { }

But this is not the correct syntax (CC is a array i think)...

Because the following error occured:

Quote:
033 array must be indexed (variable name)
An array as a whole cannot be used in a expression; you must indicate
an element of the array between square brackets.
How is the correct syntax ?

I've read the Help-Files, but i don't understand some things...

thx in advance...
[WbOF]LuZiFeR is offline
Send a message via AIM to [WbOF]LuZiFeR
 



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 09:51.


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