Probelem With TextDrawShowForPlayer
#1

Hi

i have make that
pawn Код:
if (strcmp("/startjob", cmdtext, true, 10) == 0)
    {
        new tonobil;
        new textsendmsg[600];
        tonobil = GetPlayerVehicleID(playerid);
        if(PlayerInfo[playerid][pJob] != 18)
        {
            return 1;
        }
        if(truckerstart[playerid] == 1)
        {
            format(textsendmsg, sizeof(textsendmsg),"~r~Cargo transport company says:~n~n~ ~W~You have already started the job.");
            TextDrawHideForPlayer(playerid, Sendtextmsg);
            TextDrawSetString(Sendtextmsg, textsendmsg);
            TextDrawShowForPlayer(playerid, Sendtextmsg);
            SetTimerEx("Removesendtext", 10000, false, "i", playerid);
            return 1;
        }
        if(ticketjob[playerid] != 1)
        {
            format(textsendmsg, sizeof(textsendmsg),"~r~Cargo transport company says:~n~n~ ~W~You  have no ticket to start the job.");
            TextDrawHideForPlayer(playerid, Sendtextmsg);
            TextDrawSetString(Sendtextmsg, textsendmsg);
            TextDrawShowForPlayer(playerid, Sendtextmsg);
            SetTimerEx("Removesendtext", 10000, false, "i", playerid);
            return 1;
        }
        if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
        {
            return SendClientMessage(playerid, -1, "* You are not the driver!");
        }
        if (GetVehicleModel(tonobil) != 578) return SendClientMessage(playerid, -1, "* You are not in a vehicle!");
        truckerstart[playerid] = 1;
        format(textsendmsg, sizeof(textsendmsg),"~r~Cargo transport company says:~n~n~ ~W~You have start the job~n~ ~n~To stop your work, Type: /stopjob.");
        TextDrawHideForPlayer(i, Sendtextmsg);
        TextDrawSetString(Sendtextmsg, textsendmsg);
        TextDrawShowForPlayer(i, Sendtextmsg);
        SetTimerEx("Removesendtext", 30000, false, "i", i);
        new rand = random(sizeof(truckermrsacheck));
        DisablePlayerCheckpoint(playerid);
        SetPlayerCheckpoint(playerid, truckermrsacheck[rand][0], truckermrsacheck[rand][1], truckermrsacheck[rand][2],4);
        CP[playerid] = 50;
        return 1;
    }
pawn Код:
Sendtextmsg = TextDrawCreate(139, 364, "            ");
    TextDrawFont(Sendtextmsg, 1);
    TextDrawLetterSize(Sendtextmsg, 0.4, 0.8);
But ingame


Reply


Messages In This Thread
Probelem With TextDrawShowForPlayer - by morocco - 08.08.2013, 09:30
Re: Probelem With TextDrawShowForPlayer - by BullseyeHawk - 08.08.2013, 11:00
Re: Probelem With TextDrawShowForPlayer - by -Prodigy- - 08.08.2013, 13:00

Forum Jump:


Users browsing this thread: 1 Guest(s)