#1

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

show the enum of labelcolor
Reply
#3

Its not enum ,its variable(new)..
new labeltext[15][128];
new labelcolor[15][128];
Reply
#4

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.
Reply
#5

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 :/
Reply
#6

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

Quote:
Originally Posted by gamelaster
Посмотреть сообщение
new labelcolor[15][128];
Colors are not strings! They are NUMBERS.
Reply
#8

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..
Reply
#9

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 !
Reply
#10

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..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)