PDA

View Full Version : Question about includes


[MM]RoXoR[FS]
02/08/2012, 04:02 PM
I was thinking of making my player enum in an include like.


//In the include
enum E_DATA
{
variable1,
}
new pData[MAX_PLAYERS][E_DATA];


Is it possible to do like

//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?

Misiur
02/08/2012, 04:24 PM
Nope, the include cannot be variable sharer (just checked). That's sad for me too :c http://forum.sa-mp.com/showthread.php?t=261584 - I think you've read that already, but check out GVars