SA-MP Forums Archive
Help Me - 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: Help Me (/showthread.php?tid=596618)



Help Me - dh240473 - 20.12.2015

PHP код:
CMD:ktext(playeridparams[])
{
    new 
strtext[999],text[50];
    if(
sscanf(params,"s[50]",text)) return SendClientMessage(playerid, -1"Usage:/ktext [Text]");
    
format(strtextsizeof(strtext), ""COL_RED"%s"text);
    
KLBL[playerid] = Create3DTextLabel(strtext,0xFFF000FF,30.0,40.0,50.0,40.0,0);//In This Line
    
Attach3DTextLabelToPlayer(KLBL[playerid], playerid0.00.00.3);//In This Line
    
return 1;

I Got Warning When Compile This Warning Tag Mismatch


Re: Help Me - GeneralAref - 20.12.2015

use this
PHP код:
KLBL[playerid] = Create3DTextLabel(strtext,0xFFF000FF,30.0,40.0,50.0,40.0,0,0);
Attach3DTextLabelToPlayer(KLBL[playerid],0.00.00.3); 



Re: Help Me - Sawalha - 20.12.2015

make sure that you defined KLBL variable beside Text3D tag, means it gonna be:
Код:
new Text3D:KLBL[MAX_PLAYERS];



Re: Help Me - dh240473 - 20.12.2015

Quote:
Originally Posted by Sawalha
Посмотреть сообщение
make sure that you defined KLBL variable beside Text3D tag, means it gonna be:
Код:
new Text3D:KLBL[MAX_PLAYERS];
THX ! I Forgot Text:KLBL For Textdraw +REP