Linking a FS with a GM? - 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: Linking a FS with a GM? (
/showthread.php?tid=411590)
Linking a FS with a GM? -
acade - 29.01.2013
Hey, I'm looking at creating a FS for my server, However I was wondering how can I link PlayerInfo with my gamemode instead of having to move everything into the FS?
Re: Linking a FS with a GM? -
Roach_ - 29.01.2013
You can't.. Only if you use PVariables:
Код:
SetPVarString: Set a string for a player variable.
SetPVarInt: Set an integer for a player variable.
GetPVarInt: Get a player variable as an integer.
GetPVarString: Get the previously set string from a player variable.
SetPVarFloat: Set a float for a player variable.
GetPVarFloat: Get the previously set float from a player variable.
DeletePVar: Delete the player variable.
Re: Linking a FS with a GM? -
acade - 29.01.2013
So if I wanted this from my GM, How would I go about doing it?
Код:
FactionInfo[PlayerInfo[playerid][pMember]][FactionType];
Re: Linking a FS with a GM? -
Roach_ - 29.01.2013
You don't create a FS, you put the FS right in your GameMode..
Re: Linking a FS with a GM? -
acade - 29.01.2013
Quote:
Originally Posted by Roach_
You don't create a FS, you put the FS right in your GameMode..
|
I've tried doing that, Somehow I begin to get errors from my gamemode.