Ich will mein Login & Register nach 15 Sekunden öffnen lassen mit einem Timer doch ich krieg diesen Fehler beim Compelieren:
C:\Users\Daniel\Desktop\Server\gamemodes\reallife.pwn(808) : error 025: function heading differs from prototype
Code:
Code
public loginregistertimer(playerid)
{
new
Cache:cache, rows, query[81 +MAX_PLAYER_NAME];
format(query, sizeof(query), "SELECT * FROM `users` WHERE `username` COLLATE latin1_general_cs = '%q' LIMIT 1", ReturnPlayerName(playerid));
cache = mysql_query(handle, query, true);
cache_get_row_count(rows);
if (! rows)
{
if (SetPVarInt(playerid, "RegisterTextDraws", 1))
{
RegisterTextDraw[playerid][0] = CreatePlayerTextDraw(playerid, 277.400085, 101.399917, "box");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][0], 0.000000, 25.012474);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][0], 512.106445, 0.000000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][0], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][0], -1);
PlayerTextDrawUseBox(playerid, RegisterTextDraw[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, RegisterTextDraw[playerid][0], 133);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][0], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][0], 0);
RegisterTextDraw[playerid][1] = CreatePlayerTextDraw(playerid, 144.900054, 98.800018, "");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][1], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][1], 124.000000, 207.772872);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][1], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][1], 153);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][1], 5);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][1], 0);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][1], 0);
PlayerTextDrawSetPreviewModel(playerid, RegisterTextDraw[playerid][1], 0);
PlayerTextDrawSetPreviewRot(playerid, RegisterTextDraw[playerid][1], 0.000000, 0.000000, 0.000000, 1.000000);
RegisterTextDraw[playerid][2] = CreatePlayerTextDraw(playerid, 207.199340, 313.302551, "PlayerName");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][2], 0.298000, 1.483332);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][2], -0.649999, 120.680145);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][2], 2);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][2], -1);
PlayerTextDrawUseBox(playerid, RegisterTextDraw[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, RegisterTextDraw[playerid][2], 133);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][2], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][2], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][2], 0);
RegisterTextDraw[playerid][3] = CreatePlayerTextDraw(playerid, 366.000000, 116.000000, "box");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][3], 0.000000, 2.149996);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][3], 504.000000, 20.000000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][3], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][3], -1);
PlayerTextDrawUseBox(playerid, RegisterTextDraw[playerid][3], 1);
PlayerTextDrawBoxColor(playerid, RegisterTextDraw[playerid][3], 252645375);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][3], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][3], 1);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][3], 0);
PlayerTextDrawSetSelectable(playerid, RegisterTextDraw[playerid][3], true);
RegisterTextDraw[playerid][4] = CreatePlayerTextDraw(playerid, 320.000000, 118.000000, "Passwort:");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][4], 0.279000, 1.401664);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][4], 2);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][4], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][4], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][4], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][4], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][4], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][4], 0);
RegisterTextDraw[playerid][5] = CreatePlayerTextDraw(playerid, 320.500000, 157.301635, "Geschlecht:");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][5], 0.279000, 1.401664);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][5], 2);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][5], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][5], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][5], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][5], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][5], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][5], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][5], 0);
RegisterTextDraw[playerid][6] = CreatePlayerTextDraw(playerid, 366.000000, 154.000305, "box");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][6], 0.000000, 2.149996);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][6], 504.000000, 20.000000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][6], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][6], -1);
PlayerTextDrawUseBox(playerid, RegisterTextDraw[playerid][6], 1);
PlayerTextDrawBoxColor(playerid, RegisterTextDraw[playerid][6], 252645375);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][6], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][6], 0);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][6], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][6], 1);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][6], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][6], 0);
PlayerTextDrawSetSelectable(playerid, RegisterTextDraw[playerid][6], true);
RegisterTextDraw[playerid][7] = CreatePlayerTextDraw(playerid, 320.000000, 194.503906, "Geburtstag:");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][7], 0.279000, 1.401664);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][7], 2);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][7], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][7], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][7], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][7], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][7], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][7], 0);
RegisterTextDraw[playerid][8] = CreatePlayerTextDraw(playerid, 366.000000, 192.902679, "box");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][8], 0.000000, 2.149996);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][8], 504.000000, 20.000000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][8], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][8], -1);
PlayerTextDrawUseBox(playerid, RegisterTextDraw[playerid][8], 1);
PlayerTextDrawBoxColor(playerid, RegisterTextDraw[playerid][8], 252645375);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][8], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][8], 0);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][8], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][8], 1);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][8], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][8], 0);
PlayerTextDrawSetSelectable(playerid, RegisterTextDraw[playerid][8], true);
RegisterTextDraw[playerid][9] = CreatePlayerTextDraw(playerid, 374.499420, 156.800048, "/");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][9], 0.279000, 1.401664);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][9], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][9], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][9], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][9], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][9], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][9], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][9], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][9], 0);
RegisterTextDraw[playerid][10] = CreatePlayerTextDraw(playerid, 374.000000, 196.283126, "Jahr");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][10], 0.279000, 1.401664);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][10], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][10], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][10], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][10], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][10], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][10], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][10], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][10], 0);
RegisterTextDraw[playerid][11] = CreatePlayerTextDraw(playerid, 366.000000, 224.004577, "box");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][11], 0.000000, 2.149996);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][11], 504.000000, 20.000000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][11], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][11], -1);
PlayerTextDrawUseBox(playerid, RegisterTextDraw[playerid][11], 1);
PlayerTextDrawBoxColor(playerid, RegisterTextDraw[playerid][11], 252645375);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][11], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][11], 0);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][11], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][11], 1);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][11], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][11], 0);
PlayerTextDrawSetSelectable(playerid, RegisterTextDraw[playerid][11], true);
RegisterTextDraw[playerid][12] = CreatePlayerTextDraw(playerid, 373.799957, 226.783096, "Monat");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][12], 0.279000, 1.401664);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][12], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][12], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][12], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][12], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][12], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][12], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][12], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][12], 0);
RegisterTextDraw[playerid][13] = CreatePlayerTextDraw(playerid, 366.000000, 254.506439, "box");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][13], 0.000000, 2.149996);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][13], 504.000000, 20.000000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][13], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][13], -1);
PlayerTextDrawUseBox(playerid, RegisterTextDraw[playerid][13], 1);
PlayerTextDrawBoxColor(playerid, RegisterTextDraw[playerid][13], 252645375);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][13], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][13], 0);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][13], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][13], 1);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][13], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][13], 0);
PlayerTextDrawSetSelectable(playerid, RegisterTextDraw[playerid][13], true);
RegisterTextDraw[playerid][14] = CreatePlayerTextDraw(playerid, 374.200012, 257.683105, "Tag");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][14], 0.279000, 1.401664);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][14], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][14], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][14], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][14], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][14], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][14], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][14], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][14], 0);
RegisterTextDraw[playerid][15] = CreatePlayerTextDraw(playerid, 481.000000, 311.743896, "ANMELDEN");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][15], 0.229497, 1.214998);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][15], 12.000000, 46.000000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][15], 2);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][15], -1);
PlayerTextDrawUseBox(playerid, RegisterTextDraw[playerid][15], 1);
PlayerTextDrawBoxColor(playerid, RegisterTextDraw[playerid][15], 6815816);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][15], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][15], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][15], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][15], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][15], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][15], 0);
PlayerTextDrawSetSelectable(playerid, RegisterTextDraw[playerid][15], true);
RegisterTextDraw[playerid][16] = CreatePlayerTextDraw(playerid, 336.797363, 286.388488, "SKIN:");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][16], 0.279000, 1.401664);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][16], 2);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][16], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][16], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][16], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][16], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][16], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][16], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][16], 0);
RegisterTextDraw[playerid][17] = CreatePlayerTextDraw(playerid, 378.400756, 286.685028, "ld_beat:left");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][17], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][17], 12.000000, 16.000000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][17], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][17], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][17], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][17], 0);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][17], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][17], 4);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][17], 0);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][17], 0);
PlayerTextDrawSetSelectable(playerid, RegisterTextDraw[playerid][17], true);
RegisterTextDraw[playerid][18] = CreatePlayerTextDraw(playerid, 473.406555, 286.685028, "ld_beat:right");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][18], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, RegisterTextDraw[playerid][18], 12.000000, 16.000000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][18], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][18], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][18], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][18], 0);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][18], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][18], 4);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][18], 0);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][18], 0);
PlayerTextDrawSetSelectable(playerid, RegisterTextDraw[playerid][18], true);
RegisterTextDraw[playerid][19] = CreatePlayerTextDraw(playerid, 431.900238, 287.416778, "0");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][19], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][19], 2);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][19], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][19], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][19], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][19], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][19], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][19], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][19], 0);
RegisterTextDraw[playerid][20] = CreatePlayerTextDraw(playerid, 368.800292, 122.633346, "[]");
PlayerTextDrawLetterSize(playerid, RegisterTextDraw[playerid][20], 0.191495, 1.057499);
PlayerTextDrawAlignment(playerid, RegisterTextDraw[playerid][20], 1);
PlayerTextDrawColor(playerid, RegisterTextDraw[playerid][20], -1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][20], 0);
PlayerTextDrawSetOutline(playerid, RegisterTextDraw[playerid][20], 1);
PlayerTextDrawBackgroundColor(playerid, RegisterTextDraw[playerid][20], 255);
PlayerTextDrawFont(playerid, RegisterTextDraw[playerid][20], 2);
PlayerTextDrawSetProportional(playerid, RegisterTextDraw[playerid][20], 1);
PlayerTextDrawSetShadow(playerid, RegisterTextDraw[playerid][20], 0);
}
if (SetPVarInt(playerid, "CurrentPreviewModel", 0))
{
SetPVarInt(playerid, "Gender", -1);
SetPVarInt(playerid, "BirthDateDay", -1);
SetPVarInt(playerid, "BirthDateYear", -1);
SetPVarInt(playerid, "BirthDateMonth", -1);
}
if (GetPVarInt(playerid, "RegisterTextDraws"))
{
PlayerTextDrawSetString(playerid, RegisterTextDraw[playerid][2], ReturnPlayerName(playerid));
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][0]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][1]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][2]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][3]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][4]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][5]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][6]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][7]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][8]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][9]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][10]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][11]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][12]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][13]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][14]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][15]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][16]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][17]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][18]);
PlayerTextDrawShow(playerid, RegisterTextDraw[playerid][19]);
SelectTextDraw(playerid, COLOR_REGISTER_TD_HOVERING);
}
}
else
{
if (SetPVarInt(playerid, "LogginTextDraws", 1))
{
LogginTextDraw[playerid][0] = CreatePlayerTextDraw(playerid, 254.499908, 103.666770, "");
PlayerTextDrawLetterSize(playerid, LogginTextDraw[playerid][0], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, LogginTextDraw[playerid][0], 131.000000, 190.000000);
PlayerTextDrawAlignment(playerid, LogginTextDraw[playerid][0], 1);
PlayerTextDrawColor(playerid, LogginTextDraw[playerid][0], -1);
PlayerTextDrawSetShadow(playerid, LogginTextDraw[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, LogginTextDraw[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, LogginTextDraw[playerid][0], 153);
PlayerTextDrawFont(playerid, LogginTextDraw[playerid][0], 5);
PlayerTextDrawSetProportional(playerid, LogginTextDraw[playerid][0], 0);
PlayerTextDrawSetShadow(playerid, LogginTextDraw[playerid][0], 0);
PlayerTextDrawSetPreviewModel(playerid, LogginTextDraw[playerid][0], 1);
PlayerTextDrawSetPreviewRot(playerid, LogginTextDraw[playerid][0], 0.000000, 0.000000, 0.000000, 1.000000);
LogginTextDraw[playerid][1] = CreatePlayerTextDraw(playerid, 320.300109, 303.167022, "PlayerName");
PlayerTextDrawLetterSize(playerid, LogginTextDraw[playerid][1], 0.400000, 1.600000);
PlayerTextDrawTextSize(playerid, LogginTextDraw[playerid][1], 0.000000, 127.419876);
PlayerTextDrawAlignment(playerid, LogginTextDraw[playerid][1], 2);
PlayerTextDrawColor(playerid, LogginTextDraw[playerid][1], -1);
PlayerTextDrawUseBox(playerid, LogginTextDraw[playerid][1], 1);
PlayerTextDrawBoxColor(playerid, LogginTextDraw[playerid][1], 153);
PlayerTextDrawSetShadow(playerid, LogginTextDraw[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, LogginTextDraw[playerid][1], 1);
PlayerTextDrawBackgroundColor(playerid, LogginTextDraw[playerid][1], 255);
PlayerTextDrawFont(playerid, LogginTextDraw[playerid][1], 2);
PlayerTextDrawSetProportional(playerid, LogginTextDraw[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, LogginTextDraw[playerid][1], 0);
LogginTextDraw[playerid][2] = CreatePlayerTextDraw(playerid, 256.899993, 322.599914, "box");
PlayerTextDrawLetterSize(playerid, LogginTextDraw[playerid][2], 0.000000, 2.222089);
PlayerTextDrawTextSize(playerid, LogginTextDraw[playerid][2], 383.920013, 0.000000);
PlayerTextDrawAlignment(playerid, LogginTextDraw[playerid][2], 1);
PlayerTextDrawColor(playerid, LogginTextDraw[playerid][2], -1);
PlayerTextDrawUseBox(playerid, LogginTextDraw[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, LogginTextDraw[playerid][2], 133);
PlayerTextDrawSetShadow(playerid, LogginTextDraw[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, LogginTextDraw[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, LogginTextDraw[playerid][2], 255);
PlayerTextDrawFont(playerid, LogginTextDraw[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, LogginTextDraw[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, LogginTextDraw[playerid][2], 0);
LogginTextDraw[playerid][3] = CreatePlayerTextDraw(playerid, 320.799957, 324.949707, "EINLOGGEN");
PlayerTextDrawLetterSize(playerid, LogginTextDraw[playerid][3], 0.305999, 1.290832);
PlayerTextDrawTextSize(playerid, LogginTextDraw[playerid][3], 10.000000, 113.000000);
PlayerTextDrawAlignment(playerid, LogginTextDraw[playerid][3], 2);
PlayerTextDrawColor(playerid, LogginTextDraw[playerid][3], -1);
PlayerTextDrawUseBox(playerid, LogginTextDraw[playerid][3], 1);
PlayerTextDrawBoxColor(playerid, LogginTextDraw[playerid][3], -2139062017);
PlayerTextDrawSetShadow(playerid, LogginTextDraw[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, LogginTextDraw[playerid][3], 1);
PlayerTextDrawBackgroundColor(playerid, LogginTextDraw[playerid][3], 255);
PlayerTextDrawFont(playerid, LogginTextDraw[playerid][3], 2);
PlayerTextDrawSetProportional(playerid, LogginTextDraw[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, LogginTextDraw[playerid][3], 0);
PlayerTextDrawSetSelectable(playerid, LogginTextDraw[playerid][3], true);
}
new password[MAX_LENGTH_PASSWORD +1], birthdate[11 +1], gender, previewmodel;
cache_get_value_name(0, "password", password);
cache_get_value_name(0, "birthdate", birthdate);
cache_get_value_name_int(0, "gender", gender);
cache_get_value_name_int(0, "skin", previewmodel);
new day, month, year;
sscanf(birthdate, "p</>iii", day, month, year);
SetPVarInt(playerid, "Gender", gender);
SetPVarInt(playerid, "BirthDateDay", day);
SetPVarInt(playerid, "BirthDateMonth", month);
SetPVarInt(playerid, "BirthDateYear", year);
SetPVarString(playerid, "Password", password);
SetPVarInt(playerid, "LoggedInPlayer", -1);
SetPVarInt(playerid, "LogginAttempts", 0);
PlayerTextDrawSetPreviewModel(playerid, LogginTextDraw[playerid][0], previewmodel);
PlayerTextDrawSetString(playerid, LogginTextDraw[playerid][1], ReturnPlayerName(playerid));
for (new i; i < MAX_LOGGIN_TEXTDRAWS; i++)
{
PlayerTextDrawShow(playerid, LogginTextDraw[playerid][i]);
}
SelectTextDraw(playerid, COLOR_LOGGIN_TD_HOVERING);
}
cache_delete(cache);
return 1;
}
Alles anzeigen