textdraw issue - 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: textdraw issue (
/showthread.php?tid=601695)
textdraw issue -
alexanderjb918 - 24.02.2016
Код:
SpeedoText2 = CreatePlayerTextDraw(playerid, 4.500000, 267.000000, "Location");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.400000, 1.600000);
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 9.500000, 0.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][0], 255);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], -2);
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);
Errors:
Код:
C:\Users\ii\Desktop\Tor Browser\New Folder (11)\gamemodes\clrps latest.pwn(9690) : error 017: undefined symbol "TDEditor_PTD"
C:\Users\ii\Desktop\Tor Browser\New Folder (11)\gamemodes\clrps latest.pwn(9690) : warning 215: expression has no effect
C:\Users\ii\Desktop\Tor Browser\New Folder (11)\gamemodes\clrps latest.pwn(9690) : error 001: expected token: ";", but found "]"
C:\Users\ii\Desktop\Tor Browser\New Folder (11)\gamemodes\clrps latest.pwn(9690) : error 029: invalid expression, assumed zero
C:\Users\ii\Desktop\Tor Browser\New Folder (11)\gamemodes\clrps latest.pwn(9690) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: textdraw issue -
N0FeaR - 25.02.2016
try this
remember use this
new TDEditor_PTD[MAX_PLAYERS]
PHP код:
TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 4.500000, 267.000000, "Location");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.400000, 1.600000);
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 9.500000, 0.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][0], 255);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], -2);
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);
Re: textdraw issue -
alexanderjb918 - 25.02.2016
Fixed. removed the [playerid][0] my stupid coding
thanks for the help tho!