05.09.2016, 18:35
new myvar;
if(random condition) myvar=playerid;
At that point i want to know that myvar have a playerid or null.
But in here (https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables) i read that always initial value is 0. But playerid can be 0 too.
I set myvar to -1 before actions now. But i believe its not logical. So..
Could you help me about that topic please?
Are there any function like isnull,isset etc.
if(random condition) myvar=playerid;
At that point i want to know that myvar have a playerid or null.
But in here (https://sampwiki.blast.hk/wiki/Scripting_Basics#Variables) i read that always initial value is 0. But playerid can be 0 too.
I set myvar to -1 before actions now. But i believe its not logical. So..
Could you help me about that topic please?
Are there any function like isnull,isset etc.