Raised This Month: $ Target: $400
 0% 

If user model = xxxx,do something


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-24-2008 , 09:04   If user model = xxxx,do something
Reply With Quote #1

How to detect:
If (user model == gign)
{
do something
}

xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-24-2008 , 09:09   Re: If user model = xxxx,do something
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=190
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-24-2008 , 09:32   Re: If user model = xxxx,do something
Reply With Quote #3

if (cs_get_user_model(id, gign))
{
}
???

Last edited by xbatista; 12-24-2008 at 09:38.
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-24-2008 , 09:59   Re: If user model = xxxx,do something
Reply With Quote #4

PHP Code:
new g_Model[64];

g_Model cs_get_user_model(indexg_Model63);

if( 
equal(s_Model"gign") ) {
  
// try this if will not work
  // if( containi(g_Model, "gign") ) {

__________________

Last edited by xPaw; 12-24-2008 at 11:14.
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-24-2008 , 10:01   Re: If user model = xxxx,do something
Reply With Quote #5

Ok will try.
thx.
EDIT: if(g_Model ==
g_Model must be indexed.

Last edited by xbatista; 12-24-2008 at 10:22.
xbatista is offline
Send a message via Skype™ to xbatista
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-24-2008 , 10:43   Re: If user model = xxxx,do something
Reply With Quote #6

Code:
g_Model = cs_get_user_model(index, "g_Model", 63);
>
Code:
g_Model = cs_get_user_model(index, g_Model, 63);
__________________
hleV is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-24-2008 , 10:51   Re: If user model = xxxx,do something
Reply With Quote #7

Going to test.

EDIT: Still writes error:array must be indexed.
if(!!!g_Model!!!

Last edited by xbatista; 12-24-2008 at 10:55.
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-24-2008 , 11:11   Re: If user model = xxxx,do something
Reply With Quote #8

upd.
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-24-2008 , 11:13   Re: If user model = xxxx,do something
Reply With Quote #9

Going to test.

EDIT:Still must be indexed.

Last edited by xbatista; 12-24-2008 at 11:15.
xbatista is offline
Send a message via Skype™ to xbatista
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-24-2008 , 11:16   Re: If user model = xxxx,do something
Reply With Quote #10

Quote:
Originally Posted by hleV View Post
Code:
g_Model = cs_get_user_model(index, g_Model, 63);
->

Code:
cs_get_user_model(index, g_Model, charsmax(g_Model))
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 09:15.


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