10.05.2012, 01:38
Hello samp forum members,
Today i have come across a problem that has really stumped me and put a halt on my gamemodes progress. The problem is the communication between my gamemode and my filsterscipts. I dont have any errors or code to show because i dont know how do create what im looking for but ill explain what i want to achieve.
On my gamemade i have player info stored in my Info enum
and i have an array called PlayerInfo to store the enum
Now, what i am going to do is create a seperate commands filterscript to keep things tidy and alot of the commands require a certain Admin Level
However, that is defined on my gamemode and is not present in my commands filterscript and will get a 'undefined symbol' error when adding it to my filterscript.
Basically what i am looking for is a way to allow the two scripts to communicate together a pass information eg Pass PlayerInfo[playerid][pAdminLevel] values to the commands filterscript.
If anybody knows what i mean and how to do this i would really appreciate it.
Stuoyto
Today i have come across a problem that has really stumped me and put a halt on my gamemodes progress. The problem is the communication between my gamemode and my filsterscipts. I dont have any errors or code to show because i dont know how do create what im looking for but ill explain what i want to achieve.
On my gamemade i have player info stored in my Info enum
Код:
enum Info { pMoney, pSking, pAdminLevel .....etc }
Код:
new PlayerInfo[MAX_PLAYERS][Info];
Код:
PlayerInfo[playerid][pAdminLevel]
Basically what i am looking for is a way to allow the two scripts to communicate together a pass information eg Pass PlayerInfo[playerid][pAdminLevel] values to the commands filterscript.
If anybody knows what i mean and how to do this i would really appreciate it.
Stuoyto