Raised This Month: $ Target: $400
 0% 

use get_mapname


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
onosrider
Member
Join Date: Jul 2005
Old 01-02-2006 , 19:42   use get_mapname
Reply With Quote #1

i down't know why my dosen't work

Code:
new mapname[31]     get_mapname(mapname,31)     if ( mapname == ns_veil || mapname == ns_eclipse || mapname == ns_hera )     {     do something...     } else {     do something else...     }

if i set the mapnames in quotes " i get an array error i should fix and without the compiler say ns_veil is an undefined symbol.

please help me out
__________________

onosrider is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 01-02-2006 , 19:57  
Reply With Quote #2

Code:
    new mapname[31]     get_mapname(mapname,31)     if(equali(mapname, "ns_veil") || equali(mapname, "ns_eclipse") || equali(mapname, "ns_hera"))     {         do something...     } else {         do something else...     }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
onosrider
Member
Join Date: Jul 2005
Old 01-02-2006 , 20:26  
Reply With Quote #3

Thank you verry much, works perfect
__________________

onosrider is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-02-2006 , 21:04  
Reply With Quote #4

Code:
new mapname[31] get_mapname(mapname,30)
Alternately...
Code:
new mapname[32] get_mapname(mapname,31)
Brad is offline
onosrider
Member
Join Date: Jul 2005
Old 01-02-2006 , 23:04  
Reply With Quote #5

Thx, changed...

i also miss the word code "why my?" in my 1st post ;) i need some sleep

thx again
__________________

onosrider is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 01-02-2006 , 23:06  
Reply With Quote #6

Quote:
Originally Posted by Brad
Code:
new mapname[31] get_mapname(mapname,30)
Alternately...
Code:
new mapname[32] get_mapname(mapname,31)
...?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Reply



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 08:04.


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