Probelem With TextDrawShowForPlayer - 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: Probelem With TextDrawShowForPlayer (
/showthread.php?tid=456944)
Probelem With TextDrawShowForPlayer -
morocco - 08.08.2013
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
Re: Probelem With TextDrawShowForPlayer -
BullseyeHawk - 08.08.2013
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?
Re: Probelem With TextDrawShowForPlayer -
-Prodigy- - 08.08.2013
you have 2 missing ~. It should be: ~n~~n~