Hallo User,
ich komme egen wie nicht mit den klammern klar
weil ich dies eingefügt habe und das mich egen wie iritiert
public OnPlayerConnect(playerid)
{
{
if(pSpeedoOn[playerid] == 0)
{
pSpeedo[playerid][0] = TextDrawCreate(539.000000, 371.000000, "Carname");
TextDrawBackgroundColor(pSpeedo[playerid][0], 255);
TextDrawFont(pSpeedo[playerid][0], 3);
TextDrawLetterSize(pSpeedo[playerid][0], 0.500000, 1.000000);
TextDrawColor(pSpeedo[playerid][0], 16775935);
TextDrawSetOutline(pSpeedo[playerid][0], 0);
TextDrawSetProportional(pSpeedo[playerid][0], 1);
TextDrawSetShadow(pSpeedo[playerid][0], 1);
pSpeedo[playerid][1] = TextDrawCreate(528.000000, 385.000000, "Km/H:");
TextDrawBackgroundColor(pSpeedo[playerid][1], 255);
TextDrawFont(pSpeedo[playerid][1], 1);
TextDrawLetterSize(pSpeedo[playerid][1], 0.200000, 1.500000);
TextDrawColor(pSpeedo[playerid][1], 16775935);
TextDrawSetOutline(pSpeedo[playerid][1], 0);
TextDrawSetProportional(pSpeedo[playerid][1], 1);
TextDrawSetShadow(pSpeedo[playerid][1], 1);
TextDrawUseBox(pSpeedo[playerid][1], 1);
TextDrawBoxColor(pSpeedo[playerid][1], 2021161215);
TextDrawTextSize(pSpeedo[playerid][1], 623.000000, 95.000000);
pSpeedo[playerid][2] = TextDrawCreate(528.000000, 402.000000, "Tank:");
TextDrawBackgroundColor(pSpeedo[playerid][2], 255);
TextDrawFont(pSpeedo[playerid][2], 1);
TextDrawLetterSize(pSpeedo[playerid][2], 0.200000, 1.500000);
TextDrawColor(pSpeedo[playerid][2], 16775935);
TextDrawSetOutline(pSpeedo[playerid][2], 0);
TextDrawSetProportional(pSpeedo[playerid][2], 1);
TextDrawSetShadow(pSpeedo[playerid][2], 1);
TextDrawUseBox(pSpeedo[playerid][2], 1);
TextDrawBoxColor(pSpeedo[playerid][2], 2021161215);
TextDrawTextSize(pSpeedo[playerid][2], 623.000000, 95.000000);
pSpeedo[playerid][3] = TextDrawCreate(528.000000, 419.000000, "Zustand:");
TextDrawBackgroundColor(pSpeedo[playerid][3], 255);
TextDrawFont(pSpeedo[playerid][3], 1);
TextDrawLetterSize(pSpeedo[playerid][3], 0.200000, 1.500000);
TextDrawColor(pSpeedo[playerid][3], 16775935);
TextDrawSetOutline(pSpeedo[playerid][3], 0);
TextDrawSetProportional(pSpeedo[playerid][3], 1);
TextDrawSetShadow(pSpeedo[playerid][3], 1);
TextDrawUseBox(pSpeedo[playerid][3], 1);
TextDrawBoxColor(pSpeedo[playerid][3], 2021161215);
TextDrawTextSize(pSpeedo[playerid][3], 623.000000, 95.000000);
pSpeedoOn[playerid] = 1;
}
SendAdminMessage(Grün,"%s hat den Server betreten.",PlayerName);
}
TextDrawShowForPlayer(playerid,RealClock);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Eingeloggt[i] == 1)
{
Update(playerid);
Eingeloggt[playerid] = 0;
}
}
TextDrawHideForPlayer(playerid,RealClock);
return 1;
}
SendAdminMessage(Rot,"%s hat den Server Verlassen.",PlayerName);
return 1;
}