Textdraw (information) doesn't appear.
#1

// Problem fixed. (It was about zone script)
Reply
#2

pawn Код:
VHS[i] = TextDrawCreate(4.000000, 290.000000, String);
                TextDrawBackgroundColor(VHS[i], 255);
                TextDrawFont(VHS[i], 2);
                TextDrawLetterSize(VHS[i], 0.350000, 1.200000);
                TextDrawColor(VHS[i], -1);
                TextDrawSetOutline(VHS[i], 0);
                TextDrawSetProportional(VHS[i], 1);
                TextDrawSetShadow(VHS[i], 1);
               
                VHS2[i] = TextDrawCreate(4.000000, 269.000000, String2);
                TextDrawBackgroundColor(VHS2[i], 255);
                TextDrawFont(VHS2[i], 2);
                TextDrawLetterSize(VHS2[i], 0.290000, 1.200000);
                TextDrawColor(VHS2[i], -1);
                TextDrawSetOutline(VHS2[i], 0);
                TextDrawSetProportional(VHS2[i], 1);
                TextDrawSetShadow(VHS2[i], 1);
               
                VHS3[i] = TextDrawCreate(4.000000, 311.000000, String3);
                TextDrawBackgroundColor(VHS3[i], 255);
                TextDrawFont(VHS3[i], 2);
                TextDrawLetterSize(VHS3[i], 0.290000, 1.300000);
                TextDrawColor(VHS3[i], -1);
                TextDrawSetOutline(VHS3[i], 0);
                TextDrawSetProportional(VHS3[i], 1);
                TextDrawSetShadow(VHS3[i], 1);
^ This has to be put into OnGameModeInit()

pawn Код:
format(String, sizeof(String), "Kiirus:~n~ %i KM/H",  floatround(floatdiv(Speed, 1.009344), floatround_floor), floatround(Speed, floatround_floor));
                format(String2, sizeof(String2), "Liiklusvahend:~n~ %s", List(GetVehicleModel(GetPlayerVehicleID(i))));
                format(String3, sizeof(String3), "Asukoht:~n~ %s", zones[current_zone][zone_name];
Now you need to TextDrawSetString(); and then TextDrawShowForPlayer();
Reply
#3

// Problem fixed. (It was about zone script)
Reply
#4

// Problem fixed. (It was about zone script)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)