SetPVarInt
#1

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

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.
Reply
#3

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

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;
}
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)