SA-MP Forums Archive
Tag mismatch - 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 mismatch (/showthread.php?tid=634798)



Tag mismatch - Loinal - 26.05.2017

PHP код:
    TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid513.2001340.346675"~p~ZoneX Version 5");
    
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][0], 0.4000001.600000);
    
PlayerTextDrawTextSize(playeridTDEditor_PTD[playerid][0], 842.0000000.000000);
    
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][0], -2147450625);
    
PlayerTextDrawUseBox(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawBoxColor(playeridTDEditor_PTD[playerid][0], 50331766);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 0);
    
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][0], 255);
    
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 0); 
Every line gives me tag mismatch


Re: Tag mismatch - bencesz - 26.05.2017

If it's only 1 line:

PHP код:
new PlayerText:TDEditor_PTD[playerid]; // <- you don't need anything after [playerid] 
So your code should look like this:

PHP код:
    TDEditor_PTD[playerid] = CreatePlayerTextDraw(playerid513.2001340.346675"~p~ZoneX Version 5"); 
    
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid], 0.4000001.600000); 
    
PlayerTextDrawTextSize(playeridTDEditor_PTD[playerid], 842.0000000.000000); 
    
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid], 1); 
    
PlayerTextDrawColor(playeridTDEditor_PTD[playerid], -2147450625); 
    
PlayerTextDrawUseBox(playeridTDEditor_PTD[playerid], 1); 
    
PlayerTextDrawBoxColor(playeridTDEditor_PTD[playerid], 50331766); 
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid], 0); 
    
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid], 0); 
    
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid], 255); 
    
PlayerTextDrawFont(playeridTDEditor_PTD[playerid], 1); 
    
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid], 1); 
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid], 0);