02.04.2019, 21:38
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;
}
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;
}