Guten Abend Breadfish,
Ich bekomme Errors wenn ich ein Textdraw Clickable machen möchte: hier die Errors
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(86) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(97) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(155) : error 017: undefined symbol "SelectTextDraw"
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(213) : warning 217: loose indentation
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(353) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickTextDraw")
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(357) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(369) : error 017: undefined symbol "CancelSelectTextDraw"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(97) : error 017: undefined symbol "TextDrawSetSelectable"
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(155) : error 017: undefined symbol "SelectTextDraw"
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(213) : warning 217: loose indentation
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(353) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickTextDraw")
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(357) : error 017: undefined symbol "CancelSelectTextDraw"
C:\Users\prysych\Documents\Freeroam\gamemodes\Freeroam.pwn(369) : error 017: undefined symbol "CancelSelectTextDraw"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Und hier der entsprechende Code
Die TextDraws
Textdraw4 = TextDrawCreate(353.333251, 222.963073, "xXxXxXxXxXx");
TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
TextDrawAlignment(Textdraw4, 3);
TextDrawColor(Textdraw4, -1);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, -1);
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetSelectable(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
TextDrawAlignment(Textdraw4, 3);
TextDrawColor(Textdraw4, -1);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, -1);
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetSelectable(Textdraw4, 1);
Textdraw5 = TextDrawCreate(245.000000, 253.555709, "xXxXxXxXxXx");
TextDrawLetterSize(Textdraw5, 0.449999, 1.600000);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, -1);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 1);
TextDrawBackgroundColor(Textdraw5, 51);
TextDrawFont(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetSelectable(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.449999, 1.600000);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, -1);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 1);
TextDrawBackgroundColor(Textdraw5, 51);
TextDrawFont(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetSelectable(Textdraw5, 1);
Und hier die public
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw5)
{
CancelSelectTextDraw(playerid);
TextDrawHideForPlayer(playerid, Text:Textdraw0);
TextDrawHideForPlayer(playerid, Text:Textdraw1);
TextDrawHideForPlayer(playerid, Text:Textdraw2);
TextDrawHideForPlayer(playerid, Text:Textdraw3);
TextDrawHideForPlayer(playerid, Text:Textdraw4);
TextDrawHideForPlayer(playerid, Text:Textdraw5);
return 1;
}
if(clickedid == Textdraw4)
{
CancelSelectTextDraw(playerid);
TextDrawHideForPlayer(playerid, Text:Textdraw0);
TextDrawHideForPlayer(playerid, Text:Textdraw1);
TextDrawHideForPlayer(playerid, Text:Textdraw2);
TextDrawHideForPlayer(playerid, Text:Textdraw3);
TextDrawHideForPlayer(playerid, Text:Textdraw4);
TextDrawHideForPlayer(playerid, Text:Textdraw5);
SetPlayerColor(playerid,0xD90005FF);
return1;
}
return 1;
}
{
if(clickedid == Textdraw5)
{
CancelSelectTextDraw(playerid);
TextDrawHideForPlayer(playerid, Text:Textdraw0);
TextDrawHideForPlayer(playerid, Text:Textdraw1);
TextDrawHideForPlayer(playerid, Text:Textdraw2);
TextDrawHideForPlayer(playerid, Text:Textdraw3);
TextDrawHideForPlayer(playerid, Text:Textdraw4);
TextDrawHideForPlayer(playerid, Text:Textdraw5);
return 1;
}
if(clickedid == Textdraw4)
{
CancelSelectTextDraw(playerid);
TextDrawHideForPlayer(playerid, Text:Textdraw0);
TextDrawHideForPlayer(playerid, Text:Textdraw1);
TextDrawHideForPlayer(playerid, Text:Textdraw2);
TextDrawHideForPlayer(playerid, Text:Textdraw3);
TextDrawHideForPlayer(playerid, Text:Textdraw4);
TextDrawHideForPlayer(playerid, Text:Textdraw5);
SetPlayerColor(playerid,0xD90005FF);
return1;
}
return 1;
}
Ich hoffe ihr könnt mir helfen