SA-MP Forums Archive
FS to gM Link ... Yea Again ... - 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: FS to gM Link ... Yea Again ... (/showthread.php?tid=518361)



FS to gM Link ... Yea Again ... - rockhopper - 09.06.2014

Sorry for asking this again But This is not Understandable to me ... Please tell me how do i add this to an fs I have it in my Gm but how to i add this data in my fs
I basically Have a rep system That saves REp But i WAnt it to save rep such that If in my FS i put
if(Reputation[playerid] == 0) Then I shouldn't Get errors And also Explain Me how to do it


Re: FS to gM Link ... Yea Again ... - [WSF]ThA_Devil - 09.06.2014

Quote:
Originally Posted by rockhopper
Посмотреть сообщение
Sorry for asking this again But This is not Understandable to me ... Please tell me how do i add this to an fs I have it in my Gm but how to i add this data in my fs
I basically Have a rep system That saves REp But i WAnt it to save rep such that If in my FS i put
if(Reputation[playerid] == 0) Then I shouldn't Get errors And also Explain Me how to do it
By that you mean accessing Reputation[playerid] data in another script while maintaining it in gamemode?

If so, create new include.
then paste
new Reputation[MAX_PLAYERS]; from gamemode to include.
then include it in both, gamemode and filterscript.


Re: FS to gM Link ... Yea Again ... - KillerStrike23 - 09.06.2014

pawn Код:
enum pInfo{
    Reputation,}
new PlayerInfo[MAX_PLAYERS][pInfo];
its a pinfo its more easier to create a value for it