Vehicle Entering Messages
#1

Hello,

I am trying to make this message appear with the correct infomation but it doesnt work.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)
{
new id, string[128];
id = GetVehicleModel(GetPlayerVehicleID(playerid));
for(new a; a < MAX_VCARS; a++)
{
format(string, sizeof(string), "You Entered a %s(%d). Owner: %s", VehicleNames[id - 400],sInfo[a][ID],sInfo[a][vOwner]);
}
SendClientMessage(playerid,COLOR_ADMSININE,string);
return 1;
}
}
What this basically is supposed to do is when a player enters a car he gets a message "You have entered a "CArname"(Carid). Owner: "Car Owner"" but it prints out "You Entered a Infernus(0). Owner: " Owner field should display my name but it doesnt and the car id should be 315 but it prints 0
Reply


Messages In This Thread
Vehicle Entering Messages - by ZBits - 22.02.2014, 21:29
Re: Vehicle Entering Messages - by Abagail - 22.02.2014, 21:37
Re: Vehicle Entering Messages - by ZBits - 22.02.2014, 21:39
Re: Vehicle Entering Messages - by Brandon_More - 22.02.2014, 21:40
Re: Vehicle Entering Messages - by ZBits - 22.02.2014, 21:43
Re: Vehicle Entering Messages - by ZBits - 22.02.2014, 22:29
Re: Vehicle Entering Messages - by ZBits - 23.02.2014, 09:28
Re: Vehicle Entering Messages - by MattTucker - 23.02.2014, 10:35
Re: Vehicle Entering Messages - by ZBits - 24.02.2014, 13:23
Re: Vehicle Entering Messages - by CJay9209 - 25.02.2014, 02:10

Forum Jump:


Users browsing this thread: 1 Guest(s)