[QUESTION] includes Vs filterscripts
#3

Quote:
Originally Posted by clavador
Посмотреть сообщение
Thanx for your quick and precise response.

That's why my variable wasn't working well between scripts.

I try not to read all the time from a file because I believe it's slower than other methods.

I wasn't using Pvar's because i needed an enum to keep things in order, but I guess I have to do something with that. Maybe setting the array's variable to the same number as the Pvar in order to syncronize values.
I don't know if this would help in anyway, but if you are to be passing data accross scripts with PVar's - create a function to return the data you need. Or create a macro to do such task.

For example, if you were to store the players money in a PVar, and called the variable "money" - you could create a macro to return the data, rather than writing out GetPVarInt(...);
Like so:

pawn Код:
#define GetPMoney(%0) GetPVarInt(%0, "money")
Obviously GetPMoney could be changed to the name you wished to use. (You could use it as a replacement as GetPlayerMoney to combat agaist money hacking i guess)
Reply


Messages In This Thread
[QUESTION] includes Vs filterscripts - by clavador - 03.06.2011, 15:59
Respuesta: Re: [QUESTION] includes Vs filterscripts - by clavador - 03.06.2011, 16:50
Re: Respuesta: Re: [QUESTION] includes Vs filterscripts - by Ash. - 03.06.2011, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)