Raised This Month: $ Target: $400
 0% 

Engine functions, help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AsditoŽ^
Veteran Member
Join Date: Feb 2010
Location: Santa Fe, Argentina
Old 08-11-2010 , 15:49   Engine functions, help
Reply With Quote #1

well I have a problem with this function
PHP Code:
 entity_set_int () 
I do so
PHP Code:
 entity_set_int (entityEV_INT_iuser1g_var [entity_get_edict (entityEV_ENT_owner )]) 
It does not work.

But when I do so
PHP Code:
 entity_set_int (entityEV_INT_iuser1
Works perfectly

Whether any number, it always works.
Any help?
sorry for my English
__________________
################################
AsditoŽ^ is offline
Send a message via MSN to AsditoŽ^
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-11-2010 , 16:27   Re: Engine functions, help
Reply With Quote #2

I don't understand your problem. "It does not work." : what ? you have a syntax error ? It returns the wrong value ? Be more precise.
__________________
Arkshine is offline
AsditoŽ^
Veteran Member
Join Date: Feb 2010
Location: Santa Fe, Argentina
Old 08-11-2010 , 16:32   Re: Engine functions, help
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
I don't understand your problem. "It does not work." : what ? you have a syntax error ? It returns the wrong value ? Be more precise.
"It does not work.".
It does not give the value of my var.
__________________
################################
AsditoŽ^ is offline
Send a message via MSN to AsditoŽ^
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-11-2010 , 16:34   Re: Engine functions, help
Reply With Quote #4

use rather EV_ENT_euser1 than EV_INT_iuser1
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 08-11-2010, 17:00
Arkshine
This message has been deleted by Arkshine. Reason: nvm
AsditoŽ^
Veteran Member
Join Date: Feb 2010
Location: Santa Fe, Argentina
Old 08-11-2010 , 17:05   Re: Engine functions, help
Reply With Quote #5

thank you very much.
but discovered that the function that gave value to my var was executed after the one shown.
__________________
################################
AsditoŽ^ is offline
Send a message via MSN to AsditoŽ^
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-11-2010 , 17:09   Re: Engine functions, help
Reply With Quote #6

Nice to see you search by yourself. Don't worry it won't be the last time you will do such errors. ^^
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-11-2010 , 17:13   Re: Engine functions, help
Reply With Quote #7

Anyway i told you ti use euser too fast, iuser is better since you pass an integer ( g_var[] ) and not an entity.

Also, euserX can not handle integers (unless those integer are also valid entity indexes), but iuserX can handle entity indexes.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 21:57.


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