SA-MP Forums Archive
update 0 3 7 the server does not load temporary textdraw - 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: update 0 3 7 the server does not load temporary textdraw (/showthread.php?tid=665412)



update 0 3 7 the server does not load temporary textdraw - nbx2000 - 02.04.2019

hello guys I have a problem update the server 0 3 7 change the pawno and includes for the new ones and I do not walk the temporary textdraw of the server. I was trying and change the a_samp by the 0 3 x and they returned to walk. I do not know why they do not work with a_samp 0 3 7

example code
new playername[128];
GetPlayerName(playerid,playername,sizeof(playernam e));
if(strcmp(VehicleInfo[vehicleid][owner],playername,false) == 0 && VehicleInfo[vehicleid][Temp] == 0) {
new string[128];
format(string, sizeof(string), "{00FF00}Welcome to your %s %s, please drive carefully! Remember, you must be logged in to acces vehicle controls.", VehicleInfo[vehicleid][name], playername);
SendClientMessage(playerid, COLOR_BRIGHTRED, string);
if(GetPVarInt(playerid, "notext") == 1) return 0;
else if(GetPVarInt(playerid, "notext") == 0) {
format(string, sizeof(string), "~n~ Welcome to your %s ~n~ %s, please drive ~n~ carefully! Remember, you must ~n~ be logged in to acces vehicle ~n~ controls.~n~~n~",VehicleInfo[vehicleid][name], playername);
cartext[playerid] = TextDrawCreate(10, 300.0, string);
TextDrawUseBox(cartext[playerid], 1);
TextDrawTextSize(cartext[playerid], 270, 450);
TextDrawBoxColor(cartext[playerid], 0x171717AA);
TextDrawLetterSize(cartext[playerid], 0.449999, 1.600000);
TextDrawFont(cartext[playerid], 1);
TextDrawColor(cartext[playerid], 0x66FFFFFF);
TextDrawShowForPlayer(playerid, cartext[playerid]);
SetPVarInt(playerid,"notext",1);
SetTimerEx("cardis", 3500, false, "i", playerid);
}
return 1;
}


Re: update 0 3 7 the server does not load temporary textdraw - nbx2000 - 03.04.2019

bump


Re: update 0 3 7 the server does not load temporary textdraw - CONTROLA - 04.04.2019

Shouldn't you use a PlayerText for that instead of general TextDraws?


Re: update 0 3 7 the server does not load temporary textdraw - nbx2000 - 04.04.2019

Example please?