SA-MP Forums Archive
Easy question userfiles - 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: Easy question userfiles (/showthread.php?tid=392578)



Easy question userfiles - MatZZPL - 14.11.2012

Hi everyone, how can i read my userfiles enum from my game mode in my filter script? So i can do for example in my car system if(PlayerInfo[pInfo][pJobs] == 1) - *this is data from my user files*

anyone? i guess its pretty simple

@anyone? really need it to crack on


Re: Easy question userfiles - mastermax7777 - 14.11.2012

since no one wil probably answer.. i can only think of https://sampwiki.blast.hk/wiki/CallRemoteFunction

so u make a function in your gamemode to return True or False if (PlayerInfo[pInfo][pJobs] == 1 is true,
then u call this function from ur filterscript with CallRemoteFunction()..


Re: Easy question userfiles - MatZZPL - 14.11.2012

thanks mate, +rep