Posts: 35
Threads: 12
Joined: Apr 2010
Reputation:
0
new asdf[255];
format(asdf,sizeof(asdf),"%s",inputtext);
Update3DTextLabelText(labelid[selected],labelcolor[selected],asdf);//error 035: argument type mismatch (argument 2)
Whats its bad?
Posts: 1,461
Threads: 71
Joined: Oct 2010
show the enum of labelcolor
Posts: 35
Threads: 12
Joined: Apr 2010
Reputation:
0
Its not enum ,its variable(new)..
new labeltext[15][128];
new labelcolor[15][128];
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
As your the second variable says labelcolor[id], that means that you need to make a Global Variable labelcolor[ MAX_PLAYERS ]
Also, you have made two arrays and you don't use them.
Posts: 80
Threads: 15
Joined: Jul 2011
Reputation:
0
stock MyFuckingColor(string[]){
if(strcmp(string,"OSRANA",true) return COLOR_OSRANA;
if(strcmp(string,"CERVENA",true) return COLOR_CERVENA;
}
Update3DTextLabelText(labelid[random(100)], MyFuckingColor(labelestring[random(100)]),"MY FUCKING MESSAGE");
a vraj ja som idiot... nezabudni to labelid dať ako " Text3D: " a NIE INTEGER !