01.12.2013, 01:11
GetPlayerVehicle has only 1 paremeter. (playerid)
I believe the error is located at the first line of the code, fix it by removing the 'vehicleid' at the end of the line.
I believe the error is located at the first line of the code, fix it by removing the 'vehicleid' at the end of the line.
pawn Код:
new v = GetPlayerVehicle(a);
new VehicleId[MAX_PLAYERS];
if(GetPlayerState(a) == PLAYER_STATE_DRIVER)
{
if(SpeedCameras[b][_usemph] == 0)
{
SendClientMessageEx(a,0xFF1E00FF,"sisis","You are driving too fast! you got busted driving ",speed,"kmh where you were allowed to drive ",limit, "kmh.");
SendClientMessageEx(a,0xFF1E00FF,"sis","You got yourself a fine of $",SpeedCameras[b][_fine],".");
} else {
SendClientMessageEx(a,0xFF1E00FF,"sisis","You are driving too fast! you got busted driving ",speed,"mph where you were allowed to drive ",limit, "mph.");
SendClientMessageEx(a,0xFF1E00FF,"sis","You got yourself a fine of $",SpeedCameras[b][_fine],".");
}
GivePlayerCash(a, - SpeedCameras[b][_fine]);
PlayerVehicleInfo[b][v][pvTicket] += 1000;