Posts: 1,101
Threads: 21
Joined: Oct 2010
Reputation:
0
Show the code where the message is sent to the player. (+/- 10 lines)
Posts: 160
Threads: 12
Joined: Nov 2011
Reputation:
0
Show code from "OnPlayerEnterVehicle" or playerstatechange
Posts: 12
Threads: 3
Joined: Feb 2012
Reputation:
0
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?
Posts: 1,954
Threads: 79
Joined: Aug 2009
Reputation:
0
Show your CarInfo variable and your enumeration