SA-MP Forums Archive
Q: Vehicle Callsign Issue - 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: Q: Vehicle Callsign Issue (/showthread.php?tid=604578)



Q: Vehicle Callsign Issue - Uberanwar - 07.04.2016

I'm having issue with the vehicle callsign.
It won't appear, I don't know why, however callsign saves (in the veh file).

Quote:

CMD:vcallsign(playerid, params[])
{
new vid, loc[30], label[20], string[156];

if(pInfo[playerid][Admin] < 2) return SendClientMessage(playerid, -1, "{8EB2D6}SERVER:{FFFFFF} You need to be an admin in order to do this command!");
if(sscanf(params, "is[20]", vid, label)) return SendClientMessage(playerid, -1, "{8EB2D6}SERVER:{FFFFFF} /vcallsign [vid] [text]");

format(loc, sizeof(loc), VEHICLE_FILE, vid);

if(fexist(loc))
{
format(string, sizeof(string), "{8EB2D6}[INFO]{FFFFFF}: Successfully changed and saved registered vehicle %d callsign to %s.", vid, label);
SendClientMessage(playerid, -1, string);

vInfo[vid][Callsign] = label;

format(string, sizeof(string), "%s", label);
vLabel[vid] = CreateDynamic3DTextLabel(label, 0xFFFFFFFF, 0.0, 0.0, 0.0, 12.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 12.0);
Attach3DTextLabelToVehicle(vLabel[vid], vid, -0.7, -1.9, -0.3);

SaveVehicles();
return true;
}
else return SendClientMessage(playerid, -1, "{8EB2D6}[INFO]{FFFFFF}: This vehicle is not registered in the database.");
}




Re: Q: Vehicle Callsign Issue - Vanter - 07.04.2016

I have the same problem with my vehicle system, but it gets fixed whenever the server is restarted.
so, it won't appear now, but once server is restarted, it loads everytime.

ps, i miss you mate sup