SA-MP Forums Archive
Tag - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag (/showthread.php?tid=315189)



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