How to make house enum to GVars/Player vars?
#1

Hello, I know how to use player variables, at the moment I'm not using them tho, But i want to start using them, I've found this include witch make you able to use "player variables" as normal variables, but now my question is, how to make a like house array, or somthing like in the old time i should do it like this,

(here is the GVar plugin link)
pawn Код:
enum houseinfoenum{
x,
y,
z,
//and all the other code here (hope you understand)
}

new houseinfo[MAX_HOUSES][houseinfoenum];
So, how can i do something like that with the GVar plugin or with that kind of fast variables?
(i know how to do it with playerinfo becuse you have one varialbe for every player then but is there any way of defining how many you want of each type, like this array i just explained)
Hope you understands :/ don't really know how to explain it.

Thanks for all answers
Reply
#2

Bumb, woho I waited for 48h

This forum requires that you wait 120 seconds between posts. Please try again in 43 seconds.
Reply
#3

Is there a reason why you want to use Player Vars or just for fun?
Reply
#4

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
Is there a reason why you want to use Player Vars or just for fun?
Just because they are faster then normal array/variables.
Reply
#5

Quote:
Originally Posted by Ranama
Посмотреть сообщение
Just because they are faster then normal array/variables.
No, natives functions are more slow than variables.
Reply
#6

Yes, they are indeed slower. Accessing a variable is always faster than calling a function. The only use for PVar/Gvar/properties is to share information across scripts.
Reply
#7

Sorry for bumping this, but is this possible? Want to use enums(strings) across multiple Filterscripts. And right now i have to copy and paste scripts into one ExTremely big one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)