Tag -
gamelaster - 02.02.2012
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?
Respuesta: Tag -
Jovanny - 02.02.2012
show the enum of labelcolor
Re: Tag -
gamelaster - 02.02.2012
Its not enum ,its variable(new)..
new labeltext[15][128];
new labelcolor[15][128];
Re: Tag -
Konstantinos - 02.02.2012
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.
Re: Tag -
gamelaster - 02.02.2012
Quote:
Originally Posted by Dwane
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.
|
hmm, im creating 3D Text Label editor and to variable selected saving id from selected ID to editing.....
How to fix

:/
Re: Tag -
Patchwerk - 02.02.2012
facepalm...
OMFG...
https://sampwiki.blast.hk/wiki/Update3DTextLabelText
Update3DTextLabelText(Text3D:3DTextID,Color,string[]);
...
new Text3D:labelid[100];
example
Update3DTextLabelText(labelid[random(100)],MY_FUCKING_COLOR,"MY FUCKING MESSAGE");
ou yeah, QWER
Re: Tag -
Vince - 02.02.2012
Quote:
Originally Posted by gamelaster
new labelcolor[15][128];
|

Colors are not strings! They are NUMBERS.
Re: Tag -
gamelaster - 02.02.2012
Quote:
Originally Posted by Vince
 Colors are not strings! They are NUMBERS.
|

Noooo, in labelcolor saving the setted colors......
QWER, ty si idiot

, ja toto nechcem luzer..
Re: Tag -
Patchwerk - 02.02.2012
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 !
Re: Tag -
gamelaster - 02.02.2012
Quote:
Originally Posted by Patchwerk
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 !
|

Ty niesi idiot ale genius...

Ideem to skusit. Warning: warning 209: function "Color" should return a value
Ale dufam ze to bude fungovat
Please lock this topic..