Hey ich arbeite das erste mal mit Playertextdraws und möchte diese anklickbar machen jedoch bekomme ich haufenweise Warnings...
Woran liegt das?
Code:
über OnGameModeInit:
new PlayerText:Box1[MAX_PLAYERS];
new PlayerText:Box2[MAX_PLAYERS];
Stock:
Box1[playerid] = CreatePlayerTextDraw(275.000000, 178.000000, "~n~");
PlayerTextDrawBackgroundColor(Box1[playerid], 255);
PlayerTextDrawFont(Box1[playerid], 1);
PlayerTextDrawLetterSize(Box1[playerid], 0.500000, 14.000000);
PlayerTextDrawColor(Box1[playerid], -1);
PlayerTextDrawSetOutline(Box1[playerid], 0);
PlayerTextDrawSetProportional(Box1[playerid], 1);
PlayerTextDrawSetShadow(Box1[playerid], 1);
PlayerTextDrawUseBox(Box1[playerid], 1);
PlayerTextDrawBoxColor(Box1[playerid], -16776961);
PlayerTextDrawTextSize(Box1[playerid], 190.000000, 14.000000);
Box2[playerid] = PlayerTextDrawFont(429.000000, 178.000000, "~n~");
PlayerTextDrawBackgroundColor(Box2[playerid], 255);
PlayerTextDrawFont(Box2[playerid], 1);
PlayerTextDrawLetterSize(Box2[playerid], 0.500000, 14.000000);
PlayerTextDrawColor(Box2[playerid], -1);
PlayerTextDrawSetOutline(Box2[playerid], 0);
PlayerTextDrawSetProportional(Box2[playerid], 1);
PlayerTextDrawSetShadow(Box2[playerid], 1);
PlayerTextDrawUseBox(Box2[playerid], 1);
PlayerTextDrawBoxColor(Box2[playerid], -16776961);
PlayerTextDrawTextSize(Box2[playerid], 350.000000, 14.000000);
PlayerTextDrawSetSelectable(playerid, Box1[playerid], 1);
PlayerTextDrawSetSelectable(playerid,Box2[playerid], 1);
PlayerTextDrawShow(playerid, Box1[playerid]);
PlayerTextDrawShow(playerid, Box2[playerid]);
SelectTextDraw(playerid, 0xFF4040AA);
Woran liegt das?