Before you ask, this is all under GamemodeInit. Everything is correctly defined, not sure what the problem is.
Код:
adlog[playerid] = CreatePlayerTextDraw(playerid, 192.000122, 331.520019, "Admin Log");
PlayerTextDrawLetterSize(playerid, adlog[playerid], 0.237199, 0.905599);
PlayerTextDrawAlignment(playerid, adlog[playerid], 2);
PlayerTextDrawColor(playerid, adlog[playerid], COLOR_WHITE);
PlayerTextDrawSetShadow(playerid, adlog[playerid], 0);
PlayerTextDrawSetOutline(playerid, adlog[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, adlog[playerid], 255);
PlayerTextDrawFont(playerid, adlog[playerid], 1);
PlayerTextDrawSetProportional(playerid, adlog[playerid], 1);
Alog8[playerid] = CreatePlayerTextDraw(playerid, 146.399948, 346.453430, "");
PlayerTextDrawLetterSize(playerid, Alog8[playerid], 0.208399, 0.913066);
PlayerTextDrawAlignment(playerid, Alog8[playerid], 1);
PlayerTextDrawColor(playerid, Alog8[playerid], COLOR_WHITE);
PlayerTextDrawSetShadow(playerid, Alog8[playerid], 0);
PlayerTextDrawSetOutline(playerid, Alog8[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Alog8[playerid], 255);
PlayerTextDrawFont(playerid, Alog8[playerid], 1);
PlayerTextDrawSetProportional(playerid, Alog8[playerid], 1);
Alog7[playerid] = CreatePlayerTextDraw(playerid, 146.399856, 354.666625, "");
PlayerTextDrawLetterSize(playerid, Alog7[playerid], 0.208398, 0.913066);
PlayerTextDrawAlignment(playerid, Alog7[playerid], 1);
PlayerTextDrawColor(playerid, Alog7[playerid], COLOR_WHITE);
PlayerTextDrawSetShadow(playerid, Alog7[playerid], 0);
PlayerTextDrawSetOutline(playerid, Alog7[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Alog7[playerid], 255);
PlayerTextDrawFont(playerid, Alog7[playerid], 1);
PlayerTextDrawSetProportional(playerid, Alog7[playerid], 1);
Alog6[playerid] = CreatePlayerTextDraw(playerid, 146.399963, 362.880004, "");
PlayerTextDrawLetterSize(playerid, Alog6[playerid], 0.208398, 0.913066);
PlayerTextDrawAlignment(playerid, Alog6[playerid], 1);
PlayerTextDrawColor(playerid, Alog6[playerid], COLOR_WHITE);
PlayerTextDrawSetShadow(playerid, Alog6[playerid], 0);
PlayerTextDrawSetOutline(playerid, Alog6[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Alog6[playerid], 255);
PlayerTextDrawFont(playerid, Alog6[playerid], 1);
PlayerTextDrawSetProportional(playerid, Alog6[playerid], 1);
Alog5[playerid] = CreatePlayerTextDraw(playerid, 146.400009, 371.093353, "");
PlayerTextDrawLetterSize(playerid, Alog5[playerid], 0.208398, 0.913066);
PlayerTextDrawAlignment(playerid, Alog5[playerid], 1);
PlayerTextDrawColor(playerid, Alog5[playerid], COLOR_WHITE);
PlayerTextDrawSetShadow(playerid, Alog5[playerid], 0);
PlayerTextDrawSetOutline(playerid, Alog5[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Alog5[playerid], 255);
PlayerTextDrawFont(playerid, Alog5[playerid], 1);
PlayerTextDrawSetProportional(playerid, Alog5[playerid], 1);
Alog4[playerid] = CreatePlayerTextDraw(playerid, 146.400009, 379.306610, "");
PlayerTextDrawLetterSize(playerid, Alog4[playerid], 0.208398, 0.913066);
PlayerTextDrawAlignment(playerid, Alog4[playerid], 1);
PlayerTextDrawColor(playerid, Alog4[playerid], COLOR_WHITE);
PlayerTextDrawSetShadow(playerid, Alog4[playerid], 0);
PlayerTextDrawSetOutline(playerid, Alog4[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Alog4[playerid], 255);
PlayerTextDrawFont(playerid, Alog4[playerid], 1);
PlayerTextDrawSetProportional(playerid, Alog4[playerid], 1);
Alog3[playerid] = CreatePlayerTextDraw(playerid, 146.400039, 386.773376, "");
PlayerTextDrawLetterSize(playerid, Alog3[playerid], 0.208398, 0.913066);
PlayerTextDrawAlignment(playerid, Alog3[playerid], 1);
PlayerTextDrawColor(playerid, Alog3[playerid], COLOR_WHITE);
PlayerTextDrawSetShadow(playerid, Alog3[playerid], 0);
PlayerTextDrawSetOutline(playerid, Alog3[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Alog3[playerid], 255);
PlayerTextDrawFont(playerid, Alog3[playerid], 1);
PlayerTextDrawSetProportional(playerid, Alog3[playerid], 1);
Alog2[playerid] = CreatePlayerTextDraw(playerid, 146.399978, 394.239837, "");
PlayerTextDrawLetterSize(playerid, Alog2[playerid], 0.208398, 0.913066);
PlayerTextDrawAlignment(playerid, Alog2[playerid], 1);
PlayerTextDrawColor(playerid, Alog2[playerid], COLOR_WHITE);
PlayerTextDrawSetShadow(playerid, Alog2[playerid], 0);
PlayerTextDrawSetOutline(playerid, Alog2[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Alog2[playerid], 255);
PlayerTextDrawFont(playerid, Alog2[playerid], 1);
PlayerTextDrawSetProportional(playerid, Alog2[playerid], 1);
Alog1[playerid] = CreatePlayerTextDraw(playerid, 146.399917, 401.706665, "");
PlayerTextDrawLetterSize(playerid, Alog1[playerid], 0.208398, 0.913066);
PlayerTextDrawAlignment(playerid, Alog1[playerid], 1);
PlayerTextDrawColor(playerid, Alog1[playerid], COLOR_WHITE);
PlayerTextDrawSetShadow(playerid, Alog1[playerid], 0);
PlayerTextDrawSetOutline(playerid, Alog1[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Alog1[playerid], 255);
PlayerTextDrawFont(playerid, Alog1[playerid], 1);
PlayerTextDrawSetProportional(playerid, Alog1[playerid], 1);
Alogbox[playerid] = CreatePlayerTextDraw(playerid, 147.599990, 344.966674, "usebox");
PlayerTextDrawLetterSize(playerid, Alogbox[playerid], 0.000000, -0.316666);
PlayerTextDrawTextSize(playerid, Alogbox[playerid], 236.400009, 0.000000);
PlayerTextDrawAlignment(playerid, Alogbox[playerid], 1);
PlayerTextDrawColor(playerid, Alogbox[playerid], 0);
PlayerTextDrawUseBox(playerid, Alogbox[playerid], true);
PlayerTextDrawBoxColor(playerid, Alogbox[playerid], 102);
PlayerTextDrawSetShadow(playerid, Alogbox[playerid], 0);
PlayerTextDrawSetOutline(playerid, Alogbox[playerid], 0);
PlayerTextDrawFont(playerid, Alogbox[playerid], 0);
Init, not OnPlayerInit. When the gamemode starts there are no players connected. As you probably know you can't really do anything with/to players that aren't there.