string prob
#5

Код:
public OnPlayerEnterCheckpoint(playerid) { 
    switch(MissionStage[playerid]) { 
        case STAGE_IDLE: {} // do not remove 
        case STAGE_UNLOAD: { 
            new 
                string[64] 
            ; 
            FreezePlayer(playerid, 3000); 
            DisablePlayerCheckpoint(playerid); 
            GameTextForPlayer(playerid, "~g~Passengers UnLoading !", 2000, 4); 
		  
            SetPlayerScore(playerid, GetPlayerScore(playerid) + 1); 
		  new RandomPay = random(5000 - 20000) + 5000;
		  GivePlayerMoney( playerid, RandomPay );
		  format(string, sizeof(string), " You Have Recieved $%i for Completing your Flight!", RandomPay);
            GetPlayerName(playerid, string, MAX_PLAYER_NAME); 
            strcat(string, " Completed a Flight!"); 
            SendClientMessageToAll(COLOR_ORANGE, string); 
            SendClientMessage(playerid, COLOR_GREY, "All Passengers had Been UnBoarded!");  
            MissionStage[playerid] = STAGE_IDLE; 
        } 
        default: { // STAGE_LOAD 
            new 
                rand = random(sizeof gAirports - 1) 
            ; 
            if(rand == (MissionStage[playerid] - STAGE_LOAD)) { 
                rand++; 
            } 
            FreezePlayer(playerid, 3000); 
            DisablePlayerCheckpoint(playerid); 
            GameTextForPlayer(playerid, "~g~Passengers Boarding !", 2000, 4); 
            SetPlayerCheckpoint(playerid, gAirports[rand][0], gAirports[rand][1], gAirports[rand][2], 10.0); 
            SendClientMessage(playerid, COLOR_GREY, "All Passengers has Been Boarded and Fastened Their Seat Belts!"); 

            MissionStage[playerid] = STAGE_UNLOAD; 
        } 
    } 
    return false; 
}
see in above script i have 2 string one about comepleted the flight and other about money got after completing but it does not work correclty ... whats wrong with it ?
Reply


Messages In This Thread
string prob - by Shaheen - 16.03.2016, 21:07
Re: string prob - by itsCody - 16.03.2016, 21:10
Re: string prob - by XtremeRz - 16.03.2016, 21:14
Re: string prob - by saffierr - 16.03.2016, 21:25
Re: string prob - by Shaheen - 16.03.2016, 21:35
Re: string prob - by itsCody - 16.03.2016, 21:38
Re: string prob - by Shaheen - 16.03.2016, 21:44
Re: string prob - by Shaheen - 17.03.2016, 03:41
Re: string prob - by itsCody - 17.03.2016, 03:49
Re: string prob - by Shaheen - 17.03.2016, 04:28

Forum Jump:


Users browsing this thread: 1 Guest(s)