07.04.2016, 13:02
I'm having issue with the vehicle callsign.
It won't appear, I don't know why, however callsign saves (in the veh file).
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."); } |