Which ? (gVar and pVar)
#6

Quote:
Originally Posted by Gammix
Посмотреть сообщение
What's the point here in making a choice between PVar or variables ?

You only use PVars when you want to access the value of that specific variable in other scripts.
(e.g. My admin level is 5, so i need to check if i am admin as well in a seperate filterscript, so i'll make use of PVars).
Example :
Код:
if(GetPVarInt(playerid,"spawncmd") == 1) return SendClientMessage(playerid,-1,"You did not spawn");
OR
Код:
if(spawncmd[playerid] == 1) return SendClientMessage(playerid,-1,"You did not spawn");
Which makes sense here
Reply


Messages In This Thread
Which ? (gVar and pVar) - by ProRakNet - 22.05.2016, 11:23
Re: Which ? (gVar and pVar) - by luke49 - 22.05.2016, 11:31
Re: Which ? (gVar and pVar) - by PT - 22.05.2016, 11:49
Re: Which ? (gVar and pVar) - by iKevin - 22.05.2016, 12:49
Re: Which ? (gVar and pVar) - by Gammix - 22.05.2016, 18:00
Re: Which ? (gVar and pVar) - by ProRakNet - 22.05.2016, 20:14
Re: Which ? (gVar and pVar) - by Konstantinos - 22.05.2016, 20:16
Re: Which ? (gVar and pVar) - by ProRakNet - 22.05.2016, 20:33

Forum Jump:


Users browsing this thread: 3 Guest(s)