making array null? - 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: making array null? (
/showthread.php?tid=402265)
making array null? -
deffo - 25.12.2012
Hello is there any predefined function in pawno which makes the string array null ? Or I have to use for loop manually ?
Re: making array null? -
Kyle - 25.12.2012
I think this is it:
new string[156];
then: string[0] = E0S;
Re: making array null? -
Vince - 25.12.2012
That will
mark the string as empty when checked through strlen or isnull. It will NOT, however, clear the entire string. If that's what you want to do then you need a loop.