SA-MP Forums Archive
Can't reset string - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can't reset string (/showthread.php?tid=180934)



Can't reset string - R4v3nh34rt - 03.10.2010

How do you erase string content? I 've tried every possible solution but nothing. Format, sscanf, string=""; strdel none of which worked.


Re: Can't reset string - M4S7ERMIND - 03.10.2010

Have you tried this:
pawn Код:
string[0] = '\0';