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

Код HTML:
	                new v = GetPlayerVehicle(b, vehicleid);
	                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;
And this is error
PHP код:
C:\osama\gamemodes\abcs.pwn(105467) : error 017undefined symbol "vehicleid" 
please help me
Reply
#2

show me your 105467th line.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)