27.10.2012, 06:10
Hi, i Used iPLEOMax's Textdraw Editor And created a player textdraw. But When i compile It Give Me errors
Code
Error
Need Help!
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);
Код:
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.