Is it possible to set variables valuse created in gamemode through filterscript - 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: Is it possible to set variables valuse created in gamemode through filterscript (
/showthread.php?tid=644375)
Is it possible to set variables valuse created in gamemode through filterscript -
lackmail - 06.11.2017
Is it possible to set variables values created in gamemode through filterscript like i have this variable PlayerInfo[playerid][Vehicle] in my gamemode then in my vehicle system filterscript i have a /buy command when i use it i want to change PlayerInfo[playerid][Vehicle] value is it possible?
i know how to share variable informations using callremotefunction between the gamemode and filterscript but i dont know how to set a gamemode variable through filterscript
Re: Is it possible to set variables valuse created in gamemode through filterscript -
OneDay - 06.11.2017
PHP код:
public SetPlayerVehicle(playerid, vehicleid) gPlayerInfo[playerid][Vehicle] = vehicleid;
PHP код:
CallRemoteFunction("SetPlayerVehicle", "ii", playerid, vehicleid);
Re: Is it possible to set variables valuse created in gamemode through filterscript -
lackmail - 06.11.2017
thanks
Re: Is it possible to set variables valuse created in gamemode through filterscript -
RakeDW - 06.11.2017
You can use PVars.