Mini proplem on formatting multi texts on the same variable - 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: Mini proplem on formatting multi texts on the same variable (
/showthread.php?tid=634078)
Mini proplem on formatting multi texts on the same variable -
Zorono - 12.05.2017
Hey all, iam getting an error when i try formatting multi texts on the same variable code
Код:
format(vstring, sizeof(vstring), "%i - ", vehicleid);
vids += vstring; // 52847
ERROR:
Код:
(52847) : error 023: array assignment must be simple assignment
(52847) : warning 215: expression has no effect
please help
Re: Mini proplem on formatting multi texts on the same variable -
Bolex_ - 12.05.2017
The meaning of this "ERROR"
Quote:
When assigning one array to another, you cannot combine an arithmetic operation with the assignment (you cannot use the “+=”).
|
Re: Mini proplem on formatting multi texts on the same variable -
Zorono - 12.05.2017
Quote:
Originally Posted by Bolex_
The meaning of this "ERROR"
|
tried
Код:
format(vstring, sizeof(vstring), "%s%i - ", vids, vehicleid);
vids = vstring;
and worked. thnx +repped
Re: Mini proplem on formatting multi texts on the same variable -
Toroi - 12.05.2017
What do you want to accomplish, though? It does not look like it will work as you showed us in your code.