error 006: must be assigned to an array(To array set string)
#1

new labeltext[15];
new labelcolor[15];
labeltext[id] = "Stlacenim enter sa dostanete do editoru";//error 006: must be assigned to an array
labelcolor[id] = "CERVENA";//error 006: must be assigned to an array

If is bad category, please, move, this is my first topic and im ban in english
Reply
#2

You can't declare strings like that.

Try:
pawn Code:
format(labeltext, sizeof(labeltext), "Stlacenim enter sa dostanete do editoru");
format(labelcolor, sizeof(labelcolor), "CERVENA");
Reply
#3

Quote:
Originally Posted by Sinner
View Post
You can't declare strings like that.

Try:
pawn Code:
format(labeltext, sizeof(labeltext), "Stlacenim enter sa dostanete do editoru");
format(labelcolor, sizeof(labelcolor), "CERVENA");
No.
pawn Code:
new labeltext[15][128];
new labelcolor[15][128];
labeltext[id] = "Stlacenim enter sa dostanete do editoru";//error 006: must be assigned to an array
labelcolor[id] = "CERVENA";//error 006: must be assigned to an array
Reply
#4

Nvm. confused with another language.
Reply
#5

Quote:
Originally Posted by FireCat
View Post
No.
pawn Code:
new labeltext[15][128];
new labelcolor[15][128];
labeltext[id] = "Stlacenim enter sa dostanete do editoru";//error 006: must be assigned to an array
labelcolor[id] = "CERVENA";//error 006: must be assigned to an array
Ok, its function..... thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)