Is it possible to set variables valuse created in gamemode through filterscript
#1

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
Reply
#2

PHP код:
public SetPlayerVehicle(playerid, vehicleid) gPlayerInfo[playerid][Vehicle] = vehicleid; 
PHP код:
CallRemoteFunction("SetPlayerVehicle", "ii", playerid, vehicleid); 
Reply
#3

thanks
Reply
#4

You can use PVars.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)