Guten Tag liebe Community,
ich versuche seit Gestern anklickbare Textdraws zu machen der hover funktioniert aber das klicken nicht wieso auch immer
eine New Variable mit mehreren ',':
,PlayerText:Login[MAX_PLAYERS][28]
Unter OnPlayerConnect:
LoadLoginSkoam(playerid);
unter SetConnect:
public SetConnect(playerid)
{
if(IsPlayerNPC(playerid))return 1;
SpamChat(playerid,false);
for(new i=0;i<69;i++){ PlayerTextDrawShow(playerid,Login[playerid][i]); }
new randcam = random(sizeof(ConnectScreens));
SetPlayerPos(playerid,ConnectScreens[randcam][9],ConnectScreens[randcam][10],ConnectScreens[randcam][11]);
InterpolateCameraPos(playerid,ConnectScreens[randcam][0],ConnectScreens[randcam][1],ConnectScreens[randcam][2],ConnectScreens[randcam][3],ConnectScreens[randcam][4],ConnectScreens[randcam][5],60000,CAMERA_MOVE);
InterpolateCameraLookAt(playerid,ConnectScreens[randcam][6],ConnectScreens[randcam][7],ConnectScreens[randcam][8],ConnectScreens[randcam][9],ConnectScreens[randcam][10],ConnectScreens[randcam][11],60000,CAMERA_MOVE);
CheckBannedUser(playerid);
SetTimerEx("AuswahlAnzeigen",5000,0,"i",playerid);
return 1;
}
Der Lade Stock:
Login[playerid][7] = CreatePlayerTextDraw(playerid, 541.333312, 139.392547, "Einloggen");
PlayerTextDrawLetterSize(playerid, Login[playerid][7], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, Login[playerid][7], 1);
PlayerTextDrawColor(playerid, Login[playerid][7], -1);
PlayerTextDrawSetShadow(playerid, Login[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, Login[playerid][7], 0);
PlayerTextDrawBackgroundColor(playerid, Login[playerid][7], 255);
PlayerTextDrawFont(playerid, Login[playerid][7], 3);
PlayerTextDrawSetProportional(playerid, Login[playerid][7], 1);
PlayerTextDrawSetShadow(playerid, Login[playerid][7], 0);
PlayerTextDrawSetSelectable(playerid, Login[playerid][7], true);
Login[playerid][8] = CreatePlayerTextDraw(playerid, 541.333251, 173.822174, "Registrieren");
PlayerTextDrawLetterSize(playerid, Login[playerid][8], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, Login[playerid][8], 1);
PlayerTextDrawColor(playerid, Login[playerid][8], -1);
PlayerTextDrawSetShadow(playerid, Login[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, Login[playerid][8], 0);
PlayerTextDrawBackgroundColor(playerid, Login[playerid][8], 255);
PlayerTextDrawFont(playerid, Login[playerid][8], 3);
PlayerTextDrawSetProportional(playerid, Login[playerid][8], 1);
PlayerTextDrawSetShadow(playerid, Login[playerid][8], 0);
PlayerTextDrawSetSelectable(playerid, Login[playerid][8], true);
Server-Log meldung nach der Ausführung von SetConnect:
[00:56:34] [debug] Run time error 4: "Array index out of bounds"
[00:56:34] [debug] Accessing element at index 28 past array upper bound 27
[00:56:34] [debug] Backtrace (most recent call first):
[00:56:34] [debug] #0 001eedd0 in SetConnect () from ********.amx
Ich hoffe auf hilfe, danke.
Liebe Grüße,
Skoam