Checkpoint Not Loading
#1

No Errors or nothing, I need help with this checkpoint. Every other checkpoint works except dmvcplast, when I enter dmvcplast nothing happens. The checkpoint stays there and I don't get the license and the client message doesnt send. i'm wondering if some one could mabye figure out the issue


pawn Код:
new dmvcar = GetPlayerVehicleID(playerid);
        if(dmvcar == dmv[0] || dmvcar == dmv[1] || dmvcar == dmv[2] || dmvcar == dmv[3] || dmvcar == dmv[4])
        {
            if(takingdmv[playerid] = 1)
            {
                if(CP[playerid] == dmvcp1)
                {
                                DisablePlayerCheckpoint(playerid);
                                dmvcp2 = SetPlayerCheckpoint(playerid,-54.7761,1201.7308,19.2109,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                        else if(CP[playerid] == dmvcp2)
                        {
                            dmvcp2 = DisablePlayerCheckpoint(playerid);
                                dmvcp3 = SetPlayerCheckpoint(playerid,-49.9239,1146.0499,19.5930,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                        else if(CP[playerid] == dmvcp3)
                        {
                            dmvcp3 = DisablePlayerCheckpoint(playerid);
                                dmvcp4 = SetPlayerCheckpoint(playerid,27.4992,1128.0336,19.5938,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                        else if(CP[playerid] == dmvcp4)
                        {
                            dmvcp4 =DisablePlayerCheckpoint(playerid);
                                dmvcp5 = SetPlayerCheckpoint(playerid,-17.4935,1071.4863,19.5938,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                        else if(CP[playerid] == dmvcp5)
                        {
                            dmvcp5 =DisablePlayerCheckpoint(playerid);
                                dmvcp6 = SetPlayerCheckpoint(playerid,-62.5911,1037.3400,19.5938,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                        else if(CP[playerid] == dmvcp6)
                        {
                            dmvcp6 =DisablePlayerCheckpoint(playerid);
                                dmvcp7 = SetPlayerCheckpoint(playerid,-88.7619,1100.6285,19.5938,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                        else if(CP[playerid] == dmvcp7)
                        {
                            dmvcp7 =DisablePlayerCheckpoint(playerid);
                                dmvcp8 = SetPlayerCheckpoint(playerid,-188.0131,1117.1333,19.5969,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                        else if(CP[playerid] == dmvcp8)
                        {
                            dmvcp8 =DisablePlayerCheckpoint(playerid);
                                dmvcp9 = SetPlayerCheckpoint(playerid,-187.4841,1180.7617,19.5907,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                        else if(CP[playerid] == dmvcp9)
                        {
                            dmvcp9 =DisablePlayerCheckpoint(playerid);
                                dmvcp10 = SetPlayerCheckpoint(playerid,-95.2145,1195.9398,19.5938,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                        else if(CP[playerid] == dmvcp10)
                        {
                            dmvcp10 =DisablePlayerCheckpoint(playerid);
                                dmvcplast = SetPlayerCheckpoint(playerid,42.2369,1213.7709,19.0469,3.0);
                                SCM(playerid,COLOR_YELLOW,"DMV: Good, now proceed to the next checkpoint.");
                        }
                    else if(CP[playerid] == dmvcplast)
                        {
                            dmvcplast =DisablePlayerCheckpoint(playerid);
                                PlayerInfo[playerid][pDriversLic] = 1;
                            PlayerInfo[playerid][pDriversLicP] = 5;
                            SCM(playerid,COLOR_GREEN,"DMV: Congratulations!, You've earned your drivers license.");
                            //takingdmv[playerid] = 0;
                        }
                }
                return 1;
        }
Reply
#2

BUMP!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)