SA-MP Forums Archive
FilterScript Problem - 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: FilterScript Problem (/showthread.php?tid=526872)



FilterScript Problem - Seifspeed - 19.07.2014

I downloaded a phone textdraw filterscript it works good and all, but the problem is that it gives you a new random
phone number every time you log.
I tried to use PlayerInfo[playerid][pPhonenumber] That i use in my gamemode but it says undefined or something.
All i need is to find a way to link this fs to gamemode so that it can retreive info from it.
Thanks In Advance.
+1 rep and respect


Re: FilterScript Problem - Hanger - 20.07.2014

Use PVars inside your gamemode for such things. I.e. remove the original pPhonenumber enum and swap it all using PVar functions. Then you will be able to access the same PVar from filterstripts.

Another way would be to edit this filterstript to use your gamemode storage-system via CallRemoteFunction