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



SetPVarInt - EmpireSk - 28.11.2017

https://sampwiki.blast.hk/wiki/SetPVarInt

Can you explain to me what it is used for?
Whether it is like a dini or y_ini and so on.....
If hey then then change from SetPVarInt to Dini


Re: SetPVarInt - Meller - 28.11.2017

Dini is Ann include, YSI is a library with y_ini in it. SetPVarInt is a native from the natives of SAMP. It's basically a server-sidedplayer dynamic array. Also.. learn the SQ language and the difference between variables and file saving methods.


Re: SetPVarInt - OneDay - 28.11.2017

PVars don't save y_ini saves. dini is bad dont change to it. PVars are in gamemodes and filterscripts at the same time.


Re: SetPVarInt - EmpireSk - 28.11.2017

Do I have this as much as change it?

Код:
stock EXSetPlayerInteriorEX(playerid, intid)
{
	SetPVarFloat(playerid,"TeleportProtection",1);
	SetPlayerInterior(playerid, intid);
	SetPVarInt(playerid, "SafeInt", intid);
	return 1;
}



Re: SetPVarInt - Meller - 28.11.2017

That's the same thing as:

Globally;
static TeleportProtection[MAX_PLAYERS], SafeInt[MAX_PLAYERS];

However, this will only be in use for one single file while PVars can direct the array to filterscripts etc.