Question about includes
#1

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?
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)