SA-MP Forums Archive
Textdraw (information) doesn't appear. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw (information) doesn't appear. (/showthread.php?tid=312420)



Textdraw (information) doesn't appear. - Typhome - 21.01.2012

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


AW: Textdraw (information) doesn't appear. - Drebin - 21.01.2012

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();


Re: Textdraw (information) doesn't appear. - Typhome - 21.01.2012

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


Re: Textdraw (information) doesn't appear. - Typhome - 21.01.2012

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