string prob
#10

Quote:
Originally Posted by itsCody
Посмотреть сообщение
Just put it after OnPlayerEnterCheckpoint and use the same thing for formatting all strings
PHP код:
public OnPlayerEnterCheckpoint(playerid) {
    new 
string[128]; 
i had done that but it doesnot show client message that "how much money i earned from that flight ! "
here is the code

PHP код:
public OnPlayerEnterCheckpoint(playerid) { 
new 
string[128];
    switch(
MissionStage[playerid]) { 
        case 
STAGE_IDLE: {} // do not remove 
        
case STAGE_UNLOAD: {
            
FreezePlayer(playerid3000); 
            
DisablePlayerCheckpoint(playerid); 
            
GameTextForPlayer(playerid"~g~Passengers UnLoading !"20004); 
          
            
SetPlayerScore(playeridGetPlayerScore(playerid) + 1); 
             new 
RandomPay random(10000) + 5000;
            
GivePlayerMoneyplayeridRandomPay );
            
format(stringsizeof(string), " You Have Recieved $%i for Completing your Flight!"RandomPay);
            
GetPlayerName(playeridstringMAX_PLAYER_NAME); 
            
strcat(string" Completed a Flight!"); 
            
SendClientMessageToAll(COLOR_ORANGEstring); 
            
SendClientMessage(playeridCOLOR_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(playerid3000); 
            
DisablePlayerCheckpoint(playerid); 
            
GameTextForPlayer(playerid"~g~Passengers Boarding !"20004); 
            
SetPlayerCheckpoint(playeridgAirports[rand][0], gAirports[rand][1], gAirports[rand][2], 10.0); 
            
SendClientMessage(playeridCOLOR_GREY"All Passengers has Been Boarded and Fastened Their Seat Belts!"); 
            
MissionStage[playerid] = STAGE_UNLOAD
        } 
    } 
    return 
false

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)