vehicleid error (idk y)
#1

Код:
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1 fwrite system\gamemodes\CGRP.pwn(14620) : error 017: undefined symbol "vehicleid"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1 fwrite system\gamemodes\CGRP.pwn(14621) : error 017: undefined symbol "vehicleid"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1 fwrite system\gamemodes\CGRP.pwn(14622) : error 017: undefined symbol "vehicleid"
C:\Users\Mor\Desktop\CGRP v1.02 0.3z R1 fwrite system\gamemodes\CGRP.pwn(93737) : warning 203: symbol is never used: "TextSpamTimer"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
On top:
Код:
new LightsForward[MAX_VEHICLES];
new LightsBack[MAX_VEHICLES];
Код:
if(newkeys & KEY_SUBMISSION) // Lights Faction Flickering
	{
		if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && IsAFaction(playerid))
		{
			new panels, doors, lights, tires;
		    new vehicleid = GetPlayerVehicleID(playerid);
			GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
			BlinkingLightsForward(vehicleid);
		}
		else
		{
		    UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
			KillTimer(LightsForward[vehicleid]);
			KillTimer(LightsBack[vehicleid]);
		}
	}
undefined symbol vehicleid on these lines:

Код:
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
			KillTimer(LightsForward[vehicleid]);
			KillTimer(LightsBack[vehicleid]);
Reply
#2

use this
pawn Код:
if(newkeys & KEY_SUBMISSION) // Lights Faction Flickering
    {      if(IsPlayerInAnyVehicle(playerid))
             {
                 new vehicleid = GetPlayerVehicleID(playerid);
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && IsAFaction(playerid))
        {
            new panels, doors, lights, tires;
           
            GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
            BlinkingLightsForward(vehicleid);
        }
        else
        {
            UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
            KillTimer(LightsForward[vehicleid]);
            KillTimer(LightsBack[vehicleid]);
        }
    }}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)