Hello guys. I made a script like for choosing your skin after spawning and some features doesn't work..Tell me what I'm doing wrong..I'm new at this
Код:
public OnPlayerConnect(playerid)
{
istorijos0[playerid] = CreatePlayerTextDraw(playerid, 167.000000, 97.312500, " ");
PlayerTextDrawLetterSize(playerid, PlayerText:istorijos0[playerid], 0.000000, 18.204166);
PlayerTextDrawTextSize(playerid, PlayerText:istorijos0[playerid], 22.000000, 0.000000);
PlayerTextDrawAlignment(playerid, PlayerText:istorijos0[playerid], 1);
PlayerTextDrawColor(playerid, PlayerText:istorijos0[playerid], 0);
PlayerTextDrawUseBox(playerid, PlayerText:istorijos0[playerid], 1);
PlayerTextDrawBoxColor(playerid, PlayerText:istorijos0[playerid], 102);
PlayerTextDrawSetShadow(playerid, PlayerText:istorijos0[playerid], 0);
PlayerTextDrawSetOutline(playerid, PlayerText:istorijos0[playerid], 0);
PlayerTextDrawFont(playerid, PlayerText:istorijos0[playerid],TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawSetPreviewModel(playerid, PlayerText:istorijos0[playerid], 2);
istorijos1[playerid] = CreatePlayerTextDraw(playerid, 247.312500, 97.750000, " ");
PlayerTextDrawLetterSize(playerid, PlayerText:istorijos1[playerid], 0.000000, 18.204166);
PlayerTextDrawTextSize(playerid, PlayerText:istorijos1[playerid], 400.500000, 0.000000);
PlayerTextDrawAlignment(playerid, PlayerText:istorijos1[playerid], 1);
PlayerTextDrawColor(playerid, PlayerText:istorijos1[playerid], 0);
PlayerTextDrawUseBox(playerid, PlayerText:istorijos1[playerid], 1);
PlayerTextDrawBoxColor(playerid, PlayerText:istorijos1[playerid], 102);
PlayerTextDrawSetShadow(playerid, PlayerText:istorijos1[playerid], 0);
PlayerTextDrawSetOutline(playerid, PlayerText:istorijos1[playerid], 0);
PlayerTextDrawFont(playerid,PlayerText:istorijos1[playerid],TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawSetPreviewModel(playerid, PlayerText:istorijos1[playerid], 7);
istorijos2[playerid] = CreatePlayerTextDraw(playerid, 620.000000, 100.812500, " ");
PlayerTextDrawLetterSize(playerid, PlayerText:istorijos2[playerid], 0.000000, 18.155555);
PlayerTextDrawTextSize(playerid, PlayerText:istorijos2[playerid], 474.000000, 0.000000);
PlayerTextDrawAlignment(playerid, PlayerText:istorijos2[playerid], 1);
PlayerTextDrawColor(playerid, PlayerText:istorijos2[playerid], 0);
PlayerTextDrawUseBox(playerid, PlayerText:istorijos2[playerid], 1);
PlayerTextDrawBoxColor(playerid, PlayerText:istorijos2[playerid], 102);
PlayerTextDrawSetShadow(playerid, PlayerText:istorijos2[playerid], 0);
PlayerTextDrawSetOutline(playerid, PlayerText:istorijos2[playerid], 0);
PlayerTextDrawFont(playerid,PlayerText:istorijos2[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawSetPreviewModel(playerid, PlayerText:istorijos2[playerid], 29);
istorijos3[playerid] = CreatePlayerTextDraw(playerid, 112.500000, 292.437500, "usebox");
PlayerTextDrawLetterSize(playerid, istorijos3[playerid], 0.000000, 4.301387);
PlayerTextDrawTextSize(playerid, istorijos3[playerid], 46.500000, 0.000000);
PlayerTextDrawAlignment(playerid, istorijos3[playerid], 1);
PlayerTextDrawColor(playerid, istorijos3[playerid], 0);
PlayerTextDrawUseBox(playerid, istorijos3[playerid], true);
PlayerTextDrawBoxColor(playerid, istorijos3[playerid], 102);
PlayerTextDrawSetShadow(playerid, istorijos3[playerid], 0);
PlayerTextDrawSetOutline(playerid, istorijos3[playerid], 0);
PlayerTextDrawFont(playerid,istorijos3[playerid], 0);
istorijos4[playerid] = CreatePlayerTextDraw(playerid, 347.000000, 288.500000, "usebox");
PlayerTextDrawLetterSize(playerid, istorijos4[playerid], 0.000000, 4.738887);
PlayerTextDrawTextSize(playerid, istorijos4[playerid], 284.500000, 0.000000);
PlayerTextDrawAlignment(playerid, istorijos4[playerid], 1);
PlayerTextDrawColor(playerid, istorijos4[playerid], 0);
PlayerTextDrawUseBox(playerid, istorijos4[playerid], true);
PlayerTextDrawBoxColor(playerid, istorijos4[playerid], 102);
PlayerTextDrawSetShadow(playerid, istorijos4[playerid], 0);
PlayerTextDrawSetOutline(playerid, istorijos4[playerid], 0);
PlayerTextDrawFont(playerid, istorijos4[playerid], 0);
istorijos5[playerid] = CreatePlayerTextDraw(playerid, 580.000000, 301.187500, "usebox");
PlayerTextDrawLetterSize(playerid, istorijos5[playerid], 0.000000, 4.058332);
PlayerTextDrawTextSize(playerid, istorijos5[playerid], 519.000000, 0.000000);
PlayerTextDrawAlignment(playerid, istorijos5[playerid], 1);
PlayerTextDrawColor(playerid, istorijos5[playerid], 0);
PlayerTextDrawUseBox(playerid, istorijos5[playerid], true);
PlayerTextDrawBoxColor(playerid, istorijos5[playerid], 102);
PlayerTextDrawSetShadow(playerid, istorijos5[playerid], 0);
PlayerTextDrawSetOutline(playerid, istorijos5[playerid], 0);
PlayerTextDrawFont(playerid, istorijos5[playerid], 0);
istorijos6[playerid] = CreatePlayerTextDraw(playerid, 65.500000, 306.250000, "OK");
PlayerTextDrawLetterSize(playerid, PlayerText:istorijos6[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, PlayerText:istorijos6[playerid], 1);
PlayerTextDrawColor(playerid, PlayerText:istorijos6[playerid], -1);
PlayerTextDrawSetShadow(playerid, PlayerText:istorijos6[playerid], 0);
PlayerTextDrawSetOutline(playerid, PlayerText:istorijos6[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, PlayerText:istorijos6[playerid], 51);
PlayerTextDrawFont(playerid, PlayerText:istorijos6[playerid], 1);
PlayerTextDrawSetProportional(playerid, PlayerText:istorijos6[playerid], 1);
PlayerTextDrawSetSelectable(playerid, PlayerText:istorijos6[playerid], true);
istorijos7[playerid] = CreatePlayerTextDraw(playerid, 301.500000, 304.937500, "OK");
PlayerTextDrawLetterSize(playerid, istorijos7[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, istorijos7[playerid], 1);
PlayerTextDrawColor(playerid, istorijos7[playerid], -1);
PlayerTextDrawSetShadow(playerid, istorijos7[playerid], 0);
PlayerTextDrawSetOutline(playerid, istorijos7[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, istorijos7[playerid], 51);
PlayerTextDrawFont(playerid, istorijos7[playerid], 1);
PlayerTextDrawSetProportional(playerid, istorijos7[playerid], 1);
PlayerTextDrawSetSelectable(playerid, PlayerText:istorijos7[playerid], true);
istorijos8[playerid] = CreatePlayerTextDraw(playerid, 537.500000, 314.562500, "OK");
PlayerTextDrawLetterSize(playerid, istorijos8[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, istorijos8[playerid], 1);
PlayerTextDrawColor(playerid, istorijos8[playerid], -1);
PlayerTextDrawSetShadow(playerid, istorijos8[playerid], 0);
PlayerTextDrawSetOutline(playerid, istorijos8[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, istorijos8[playerid], 51);
PlayerTextDrawFont(playerid, istorijos8[playerid], 1);
PlayerTextDrawSetProportional(playerid, istorijos8[playerid], 1);
PlayerTextDrawSetSelectable(playerid, PlayerText:istorijos8[playerid], true);
Here I made textdraws, I guess here's everything is fine.
sunaikinaistorijas is function that I created, which hide's textdraws.
Please, tell me what i'm doing wrong..Textdraws:PlayerText:istorijos6[playerid],PlayerText:istorijos7[playerid],PlayerText:istorijos8[playerid] just don't shows...Help me out please