AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get Xvar String from array.. (https://forums.alliedmods.net/showthread.php?t=89609)

Empowers 04-08-2009 10:41

get Xvar String from array..
 
I have array in gungame plugin:
PHP Code:

new lvlWeapon[33][24

it's 32 strings with max len 23.


So I wanna to get lvlWeapon var value from other plugin:
PHP Code:

new XvarId get_xvar_id("lvlWeapon"

I don't know what next?? There is no functions like get_xvar_string or get_xvar_from_array..

Any suggestions?
plz help

Arkshine 04-08-2009 10:43

Re: get Xvar String from array..
 
lvlWeapon is not a public variable.

Empowers 04-08-2009 10:45

Re: get Xvar String from array..
 
what does that mean? public.. It's a global var
I know that function can be public but not var

Arkshine 04-08-2009 10:51

Re: get Xvar String from array..
 
A var can be 'public'. get|set_xvar is meant for that. See miscstats plugin.

Empowers 04-08-2009 10:55

Re: get Xvar String from array..
 
ohhh.. :( thx..
So it's imposible to read var values from other plugins?

TheRadiance 04-08-2009 10:58

Re: get Xvar String from array..
 
Quote:

ohhh.. thx..
So it's imposible to read var values from other plugins?
only public variables i think.
but the problem is, that a public variable can't be assigned to an array. :(

I mean that this won't work:
PHP Code:

public lvlWeapon[33][24



All times are GMT -4. The time now is 02:26.

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