textdraw issue
#1

Код:
	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.
Reply
#2

try this

remember use this
new TDEditor_PTD[MAX_PLAYERS]
PHP код:
    TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid4.500000267.000000"Location");
    
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][0], 0.4000001.600000);
    
PlayerTextDrawTextSize(playeridTDEditor_PTD[playerid][0], 9.5000000.000000);
    
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][0], -1);
    
PlayerTextDrawUseBox(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawBoxColor(playeridTDEditor_PTD[playerid][0], 255);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 0);
    
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][0], -2);
    
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][0], 255);
    
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 0); 
Reply
#3

Fixed. removed the [playerid][0] my stupid coding thanks for the help tho!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)