Please help this error. i fixed it alot but not working.
#3

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.
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;
Reply


Messages In This Thread
Please help this error. i fixed it alot but not working. - by LuisPark - 30.11.2013, 23:43
Re: Please help this error. i fixed it alot but not working. - by Mitchy - 01.12.2013, 00:04
Re: Please help this error. i fixed it alot but not working. - by Loot - 01.12.2013, 01:11

Forum Jump:


Users browsing this thread: 1 Guest(s)