AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Engine functions, help (https://forums.alliedmods.net/showthread.php?t=135023)

AsditoŽ^ 08-11-2010 15:49

Engine functions, help
 
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

Arkshine 08-11-2010 16:27

Re: Engine functions, help
 
I don't understand your problem. "It does not work." : what ? you have a syntax error ? It returns the wrong value ? Be more precise.

AsditoŽ^ 08-11-2010 16:32

Re: Engine functions, help
 
Quote:

Originally Posted by Arkshine (Post 1268331)
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.

ConnorMcLeod 08-11-2010 16:34

Re: Engine functions, help
 
use rather EV_ENT_euser1 than EV_INT_iuser1

AsditoŽ^ 08-11-2010 17:05

Re: Engine functions, help
 
thank you very much.
but discovered that the function that gave value to my var was executed after the one shown. :oops:

Arkshine 08-11-2010 17:09

Re: Engine functions, help
 
Nice to see you search by yourself. Don't worry it won't be the last time you will do such errors. ^^

ConnorMcLeod 08-11-2010 17:13

Re: Engine functions, help
 
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.


All times are GMT -4. The time now is 21:57.

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