Raised This Month: $ Target: $400
 0% 

only de_,cs_


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-23-2010 , 14:27   Re: only de_,cs_
Reply With Quote #1

Use get_mapname() and compare the first part to check for "de_" or "cs_".
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
m_pro_m
Junior Member
Join Date: Nov 2010
Old 11-23-2010 , 14:31   Re: only de_,cs_
Reply With Quote #2

Quote:
Originally Posted by Exolent[jNr] View Post
compare the first part to check for "de_" or "cs_".
How ? I am not so good in Pawn :/
m_pro_m is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-23-2010 , 14:41   Re: only de_,cs_
Reply With Quote #3

There are several ways:
- equal(string, compare, length_to_check)
- contain(string, find) or strfind(string, find)
- Or check individual chars: string[0] == 'd' && string[1] == 'e' && string[2] == '_'

For methods 1 & 2, use the funcwiki for information about how to use the functions.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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 11:23.


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