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(playerid, 513.200134, 0.346675, "~p~ZoneX Version 5");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.400000, 1.600000);
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 842.000000, 0.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -2147450625);
PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][0], 50331766);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, TDEditor_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(playerid, 513.200134, 0.346675, "~p~ZoneX Version 5");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid], 0.400000, 1.600000);
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid], 842.000000, 0.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid], -2147450625);
PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid], 1);
PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid], 50331766);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid], 0);
PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid], 1);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid], 1);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid], 0);