new Text:Textdraw2[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Textdraw2 = TextDrawCreate(661.000000, -12.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 8000.000000, 8000.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, -34.000000, 0.000000);
public OnPlayerRequestClass(playerid, classid)
{
TextDrawDestroy(playerid, Textdraw2[playerid]);
return 1;
}
C:\Users\Alexander\Desktop\Script\gamemodes\Untitled.pwn(130) : error 033: array must be indexed (variable "Textdraw2")
C:\Users\Alexander\Desktop\Script\gamemodes\Untitled.pwn(162) : error 033: array must be indexed (variable "Textdraw2")
Zeile 130 bei GameModeInIt
Textdraw2 = TextDrawCreate(661.000000, -12.000000, "New Textdraw");
und 162 public OnPlayerConnect(playerid)
{
Textdraw2 = TextDrawCreate(661.000000, -12.000000, "New Textdraw");
Was will mir der Fehler sagen?