This function was added in SA-MP 0.3a and will not work in earlier versions!
(playerid)
playerid
The ID of the player you want to get the seat of.
if(strcmp(cmdtext, "/myseat", true) == 0)
{
new szString[14], iSeat = GetPlayerVehicleSeat(playerid);
// How you can discard of your information.
if(iSeat == 128) return SendClientMessage(playerid, 0xFFFFFFFF, "An error has prevented us from returning the seat ID.");
format(szString, sizeof(szString), "Your seat: %i", iSeat);
SendClientMessage(playerid, 0xFFFFFFFF, szString);
return 1;
}
The following functions may be useful, as they are related to this function in one way or another.