I have bug on my driving test help me
#1

PHP код:
if(CCP[playerid] == 1)
    {
        new 
vehicleid GetPlayerVehicleID(playerid);
        if(
IsATestCar(vehicleid))
        {
            new    
Float:health;
            
GetVehicleHealth(vehicleidhealth);
            if(
health 950.0)
            {
                
DisablePlayerCheckpoint(playerid);
                
CCP[playerid] = 2;
                
SetPlayerCheckpoint(playerid1429.81,-1732.20,13.3810.0);
            }
            else
            {
                
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Driver Instructor says: The car is to damaged!");
                
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Driver Instructor says: You didn't passed the test, please try again!");
                 
DisablePlayerCheckpoint(playerid);
                
RemovePlayerFromVehicle(playerid);
                
SetVehicleToRespawn(vehicleid);
                
PlayerInfo[playerid][pTakingLesson] = 0;
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Driver Instructor says: You are not in a car!");
               
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Driver Instructor says: You didn't pass the test, please try again!");
            
DisablePlayerCheckpoint(playerid);
            
RemovePlayerFromVehicle(playerid);
            
SetVehicleToRespawn(vehicleid);
            
PlayerInfo[playerid][pTakingLesson] = 0;
        }
    }
    else if(
CCP[playerid] == 2)
    {
        
DisablePlayerCheckpoint(playerid);
        
CCP[playerid] = 3;
        
SetPlayerCheckpoint(playerid1820.42,-1732.44,13.3810.0);
    } 
The is when i going to check point CCP[playerid] == 1 is doing me that the no more checkpoint.
after that if I going to another check point every time is doing me this meesage "Driver Instructor says: The car is to damaged!"
Sorry for my bad english.
Reply


Messages In This Thread
I have bug on my driving test help me - by Kenway - 29.01.2013, 13:50
Re: I have bug on my driving test help me - by Roach_ - 29.01.2013, 17:02
Re: I have bug on my driving test help me - by Kenway - 29.01.2013, 17:50
Re: I have bug on my driving test help me - by Roach_ - 29.01.2013, 17:58
Re: I have bug on my driving test help me - by Kenway - 29.01.2013, 18:21
Re: I have bug on my driving test help me - by Kenway - 30.01.2013, 11:23
Re: I have bug on my driving test help me - by Roach_ - 30.01.2013, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)