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
#2

When you start the gta_sa.exe trought SA:MP window(connecting towards your server)
Hit ESC and check if it's the same as in the second picture.

It both of the states are the same without you doing anything or fully connecting towards the server then it's the client-side problem, probably your mods?
Reply
#3

you have 2 missing ~. It should be: ~n~~n~
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)