04.03.2012, 22:03
I made a text draw where when you spawn or do /cmds you get the commands in a nice textdraw format. But it crashes the players as soon as they spawn (when the text draw shows). I dont see anything wrong with the text draw.. Please help
pawn Код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid,text21);
TextDrawShowForPlayer(playerid,text10);
TextDrawShowForPlayer(playerid,text11);
pawn Код:
public OnGameModeInit()
{
SetGameModeText("Stunt/Race/DM/Drift/Freeroam");
DisableInteriorEnterExits();
spawnexit = CreateDynamicCP(493.4826,-24.9611,1000.6719,1,-1,-1,-1,100);
spawnenter = CreateDynamicCP(-2624.6890,1412.7128,7.0938,1,-1,-1,-1,100);
// Textdraw
StuniqueTextDraw = TextDrawCreate(4.000000,435.000000,"_____________________________~r~SnG ~l~- ~y~http://www.sngstunt.tk - www.sng-clan.com");
TextDrawFont(StuniqueTextDraw,1);
TextDrawTextSize(StuniqueTextDraw, 640.0000, 22.5000);
text21 = TextDrawCreate(7.000000, 123.000000, "General Commands:");
TextDrawAlignment(text21, 0);
TextDrawBackgroundColor(text21, 0xF6F600AA);
TextDrawFont(text21, 1);
TextDrawLetterSize(text21, 0.499999, 1.200000);
TextDrawColor(text21, 0x0000ffff);
TextDrawSetOutline(text21, 1);
TextDrawSetProportional(text21, 1);
TextDrawSetShadow(text21, 1);
text10 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~g~General:~w~~n~/go /tgoto /skin /dub /color /para /pm /stats /healme~n~~g~Vehicle:~w~~n~/v /carcolour /carcolor /lock /unlock /autofix /tsb /cc~n~~g~House:~w~~n~/houses /house");
TextDrawAlignment(text10, 0);
TextDrawLetterSize(text10, 0.1, 0.800000);
TextDrawColor(text10, 0xffff00ff);
TextDrawSetOutline(text10, 1);
TextDrawSetProportional(text10, 1);
TextDrawSetShadow(text10, 1);
text11 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~Hits:~n~~w~/bounty /hitman~n~~g~Teles:~n~~w~/teles /races /lsa /sfa /hh /mdm /citymap~n~~g~Banking:~w~~n~/bankhelp /bank /deposit /withdraw /transfer");
TextDrawAlignment(text10, 0);
TextDrawLetterSize(text10, 0.1, 0.800000);
TextDrawColor(text10, 0xffff00ff);
TextDrawSetOutline(text10, 1);
TextDrawSetProportional(text10, 1);
TextDrawSetShadow(text10, 1);
text12 = TextDrawCreate(7.000000, 136.000000, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~thers:~n~~w~/drink, /resetdrunk, /lobby, /admins~n~Type ~r~/okay~w~ to hide this box");
TextDrawAlignment(text10, 0);
TextDrawLetterSize(text10, 0.1, 0.800000);
TextDrawColor(text10, 0xffff00ff);
TextDrawSetOutline(text10, 1);
TextDrawSetProportional(text10, 1);
TextDrawSetShadow(text10, 1);