default variable value - 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: default variable value (
/showthread.php?tid=533140)
default variable value -
MrMou6 - 22.08.2014
Hi guys, if I create new integer type variable and dont give him any value. Him value is 0?
Re: default variable value -
BuLLeT[LTU] - 22.08.2014
You can test it like this:
pawn Код:
public OnGameModeInit()
{
new var;
print("%d",var);
return 1;
}
And you will see what is it.