Mini proplem on formatting multi texts on the same variable
#1

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
Reply
#2

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 “+=”).

Reply
#3

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
Reply
#4

What do you want to accomplish, though? It does not look like it will work as you showed us in your code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)