[SOLVED]check map name/version
How can i check the map name or the map version?
if mapname == de_xxx if mapname == cs_xxx the what im working on it, can run on all maps. but in any maps i have to do anything more. so i want to check the map & do it. |
Re: check map name/version
get_mapname();
|
Re: check map name/version
lol yea get_mapname but how to check the the charchters before _ ?
if mapname == chatch_xxx if mapname == de_xxx if mapname == kz-bhop_ i mean it so. u can add more maps there. bullshit which. i need just the charachters befor underline :( |
Re: check map name/version
Use contain() after get_mapname().
|
Re: check map name/version
heh? :shock:
|
Re: check map name/version
Since you're Infinitely Awesome, you should understand that get_mapname() returns the map name and contain() will search a provided string.
|
Re: check map name/version
sure i know how to use :
get_mapname(mapname, 32) for example. but i dont know how to contain ( const source[], const string[] ) need a mini example for contain :( anything like contain ( de, _) ? |
Re: check map name/version
Quote:
Code:
|
Re: [SOLVED]check map name/version
for the first time, this worked. after mapchange.... :)
PHP Code:
|
Re: [SOLVED]check map name/version
You must check if contain() doesn't return -1. You could do this (a bit faster IMO):
Code:
|
| All times are GMT -4. The time now is 15:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.