Raised This Month: $ Target: $400
 0% 

get Xvar String from array..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-08-2009 , 10:41   get Xvar String from array..
Reply With Quote #1

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
Empowers is offline
Send a message via ICQ to Empowers
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-08-2009 , 10:43   Re: get Xvar String from array..
Reply With Quote #2

lvlWeapon is not a public variable.
Arkshine is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-08-2009 , 10:45   Re: get Xvar String from array..
Reply With Quote #3

what does that mean? public.. It's a global var
I know that function can be public but not var
Empowers is offline
Send a message via ICQ to Empowers
Old 04-08-2009, 10:49
Empowers
This message has been deleted by YamiKaitou. Reason: bump
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-08-2009 , 10:51   Re: get Xvar String from array..
Reply With Quote #5

A var can be 'public'. get|set_xvar is meant for that. See miscstats plugin.
Arkshine is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-08-2009 , 10:55   Re: get Xvar String from array..
Reply With Quote #6

ohhh.. thx..
So it's imposible to read var values from other plugins?
Empowers is offline
Send a message via ICQ to Empowers
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-08-2009 , 10:58   Re: get Xvar String from array..
Reply With Quote #7

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
TheRadiance is offline
Send a message via ICQ to TheRadiance
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 02:26.


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