This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Help with next map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Wizard
Member
Join Date: Apr 2006
Old 03-19-2009 , 04:57   Help with next map
Reply With Quote #1

i get next map like this:

new nextmap[32]
get_cvar_string("amx_nextmap", nextmap, 31)

now, how to do: if arg = nextmap don't change nextmap, show text...

i've tried like this...
Code:
	new nextmap[32]
	get_cvar_string("amx_nextmap", nextmap, 31)
	if(arg = nextmap)
		{
			client_print(id, print_console, "%L", id, "xxx", arg)
			return PLUGIN_HANDLED
		}
The Wizard is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-19-2009 , 05:01   Re: Help with next map
Reply With Quote #2

PHP Code:
if( equal(argnextmap) ) 
__________________
xPaw is offline
The Wizard
Member
Join Date: Apr 2006
Old 03-19-2009 , 08:42   Re: Help with next map
Reply With Quote #3

thx +k for you

equali work better. because with equal de_dust is not the same with de_Dust

equali - Checks if two strings are equal, case insensitively
The Wizard is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-19-2009 , 08:57   Re: Help with next map
Reply With Quote #4

Depending the need ( if arg is from client command ), equali may can more appropriate.
Arkshine 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 02:17.


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