Annoying owner display >.>
#1

Hi guys. I've been doing on my server recently, and something happened, what I don't know how to fix. When I enter an ownable car, let's say it's mine, it doesn't display my name properly. It says something like, "Owner of this car is John A1" instead of "Owner of this car is John_McCartney", for example. Where to look, what to do?
Reply
#2

Show the code where the message is sent to the player. (+/- 10 lines)
Reply
#3

Show code from "OnPlayerEnterVehicle" or playerstatechange
Reply
#4

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[128];
new vehicle[24];
GetVehicleName(vehicleid, vehicle, sizeof(vehicle));
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spectate[i] != 255)
{
PlayerSpectateVehicle(i,vehicleid);
}
}
}
if(IsAnOwnableCar(vehicleid))
{
format(string,sizeof(string),"[VEHICLE] You are entering to a %s - Owner: %s",vehicle, CarInfo[vehicleid][cOwner]);
SendClientMessage(playerid, COLOR_WHITE, string);
}


I guess it's this?
Reply
#5

anybody?
Reply
#6

Show your CarInfo variable and your enumeration
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)