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



He - Micko123 - 09.10.2016

Can someone explain me how to do this??
I want dynamic Dynamic 3DTextlabel. I have this
PHP код:
CMD:createlabel(playerid, params[])
{
    new 
Float:x, Float:y, Float:z, tekst[70], Label_ID = SledeciIDLabela();
    
GetPlayerPos(playerid, x, y, z);
    if(
sscanf(params, "s", tekst))
    {
        
SCM(playerid, -1, ""SCRV2"Koriscenje: /createlabel [tekst]");
        return 
1;
    }
    
Label[Label_ID] = CreateDynamic3DTextLabel(tekst, -1, x, y, z, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
    
LabeliInfo[labelid][lText] = tekst;
    
LabeliInfo[labelid][lX] = x;
    
LabeliInfo[labelid][lY] = y;
    
LabeliInfo[labelid][lZ] = z;
    
SacuvajLabele(Label_ID);
    
KreirajLabel(Label_ID);
    
SCM(playerid, -1, ""SCRV2"[ LABEL ] "HZELENA"Created");
    return 
1;
} 
I got this errors
Код:
C:\Users\Micko\Desktop\Server\gamemodes\Mod.pwn(232) : warning 213: tag mismatch
This is the line
PHP код:
Label[Label_ID] = CreateDynamic3DTextLabel(tekst, -1, x, y, z, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0); 



Re: He - Mencent - 09.10.2016

Hello!

PHP код:
Label_ID = SledeciIDLabela(); 
to
PHP код:
Text3D:Label_ID = SledeciIDLabela(); 



Re: He - Micko123 - 09.10.2016

Nope..


Re: He - Quinncell - 09.10.2016

First off, it's not an error.It's a warning.
Secondly, read this > https://sampforum.blast.hk/showthread.php?tid=274028
You will find an explanation to your problem.