Raised This Month: $ Target: $400
 0% 

Get current Map and use 'if'


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Veggetta
Member
Join Date: Mar 2008
Location: Portugal
Old 07-08-2012 , 08:50   Get current Map and use 'if'
Reply With Quote #1

Hello everybody,

today i want to do something like:

PHP Code:
new Name[32]
get_mapname(Namecharsmax(Name))
// And now i'm stuck with an error
if(Name == "cs_")
{
    function
}
else if(
Name == "de_")
{
   
Other Funtion

"Error: Array must be indexed (variable "Name") on line ..."
So what do i do to correct this ?
Veggetta 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 15:19.


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