SA-MP Forums Archive
Help with SetPVarInt and GetPVarInt - 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: Help with SetPVarInt and GetPVarInt (/showthread.php?tid=387816)



Help with SetPVarInt and GetPVarInt - CoaPsyFactor - 26.10.2012

Код:
Hello there,

I have this little problem, when I try to test saving pvars in database, console prints always that variable as 0.

here is code

Код:
				SetPVarInt(extraid, "Drug2", 3);
		        format(Drug, sizeof(Drug), "Drug%d", Drugs[i][drugSQLID]); //drugSQLID is 2
		        printf("%s | %d", Drug, GetPVarInt(0, Drug));
So I just need to know, does player with that ID need to be connected so it would save that pvar or ????

Thanks in advance
Solved by ******