SA-MP Forums Archive
string problem - 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: string problem (/showthread.php?tid=257029)



string problem - Sascha - 23.05.2011

Hi guys...
I have this error:
error 022: must be lvalue (non-constant)

for this line:
pawn Код:
string[x] = '*';
where's the problem? / how to do it right?

(I'm sure I made something like this before what worked and if(string[x] == '*') works, too)