Question about includes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about includes (
/showthread.php?tid=365316)
Question about includes -
[MM]RoXoR[FS] - 02.08.2012
I was thinking of making my player enum in an include like.
pawn Код:
//In the include
enum E_DATA
{
variable1,
}
new pData[MAX_PLAYERS][E_DATA];
Is it possible to do like
pawn Код:
//In some FS
pData[playerid][variable1] = 60;
//Yet in probably some other Game Mode
if(pData[playerid][variable1] == 60) {//Code}
So, we can easily share information with a FS or GM without CallRemoteFunction..
Also, what about the speed?
Re: Question about includes -
Misiur - 02.08.2012
Nope, the include cannot be variable sharer (just checked). That's sad for me too :c
https://sampforum.blast.hk/showthread.php?tid=261584 - I think you've read that already, but check out GVars