Textdraw
#1

Hi, i Used iPLEOMax's Textdraw Editor And created a player textdraw. But When i compile It Give Me errors

Code

Код:
    Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 5.600044, 168.000091, "Name:");
	PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw0[playerid], -16776961);
	PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 2);
	PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw0[playerid], 2);
	PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);

	new name[24], string[128];
	GetPlayerName(playerid, name, sizeof(name));
	
	format(string, sizeof(string), "%s", name);
	Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 68.000000, 168.746673, string);
	PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw1[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 2);
	PlayerTextDrawBackgroundColor(playerid, Textdraw1[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw1[playerid], 2);
	PlayerTextDrawSetProportional(playerid, Textdraw1[playerid], 1);
Error

Код:
E:\Scripts\XDTDM\gamemodes\XDTDM.pwn(261) : error 028: invalid subscript (not an array or too many subscripts): "Textdraw0"
E:\Scripts\XDTDM\gamemodes\XDTDM.pwn(261) : warning 215: expression has no effect
E:\Scripts\XDTDM\gamemodes\XDTDM.pwn(261) : error 001: expected token: ";", but found "]"
E:\Scripts\XDTDM\gamemodes\XDTDM.pwn(261) : error 029: invalid expression, assumed zero
E:\Scripts\XDTDM\gamemodes\XDTDM.pwn(261) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Need Help!
Reply
#2

I fixed It! But Now I am Getting Another Error

Код:
E:\Scripts\XDTDM\gamemodes\XDTDM.pwn(288) : error 035: argument type mismatch (argument 2)
E:\Scripts\XDTDM\gamemodes\XDTDM.pwn(295) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
And The Codes Are

Код:
PlayerTextDrawShow(playerid, PlayerText:Textdraw1);// Line 288
           	PlayerTextDrawHide(playerid, PlayerText:Textdraw1);// Line 295
Reply
#3

Код:
PlayerTextDrawShow(playerid, PlayerText:Textdraw1[ playerid ]);// Line 288
PlayerTextDrawHide(playerid, PlayerText:Textdraw1[ playerid ]);// Line 295
Reply
#4

@budelis UMADBRO?

pawn Код:
PlayerTextDrawShow(playerid, Textdraw0[playerid]);// Line 288
PlayerTextDrawHide(playerid, Textdraw1[playerid]);// Line 295
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)