SA-MP Forums Archive
Link Filterscript with GameMode - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Link Filterscript with GameMode (/showthread.php?tid=277364)



Link Filterscript with GameMode - Tigerbeast11 - 17.08.2011

If I have a variable in a filterscript like VIP.
pawn Код:
Variables[playerid][VIP] = GetPlayerFileVar(playerid,"VIP");
How can I check if the player is a VIP in my gamemode? Wouldn't I need some sort of include like IsPlayerVIP?


Re: Link Filterscript with GameMode - SloProKiller - 17.08.2011

Click


Re: Link Filterscript with GameMode - Tigerbeast11 - 17.08.2011

Fail for me

pawn Код:
if(Variables[playerid][VIP])
    {
        SetPlayerArmour(playerid,100);
    }
Код:
OSK-TDM.pwn(201) : error 017: undefined symbol "Variables"
OSK-TDM.pwn(201) : warning 215: expression has no effect
OSK-TDM.pwn(201) : error 001: expected token: ";", but found "]"
OSK-TDM.pwn(201) : error 029: invalid expression, assumed zero
OSK-TDM.pwn(201) : fatal error 107: too many error messages on one line



Re: Link Filterscript with GameMode - =WoR=Varth - 18.08.2011

He gave you PVar link. Read it.
What data you store in your Variables[playerid][VIP]?


Re: Link Filterscript with GameMode - Tigerbeast11 - 18.08.2011

I don't know how I would use pVar to check if the player was a VIP or not. I want it to check if the player is a vip from the %s.ini files.