a litle help please [PAWNO]
#1

hello helpers ,
hope you had a great day today ,

and after that i have a litle problem whene i compile , i dont know , itryed allot of things but no sulotion ..


here is the error code :

PHP код:
C:\Documents and Settings\admin\Bureau\sdg\filterscripts\truckerjob.pwn(44) : warning 225unreachable code
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Warning

and here is the code source

PHP код:
CMD:loadtruck(playeridparams[])
{
  if(
GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playeridCOLOR_RED"You are not driving a truck from the depot.");
  if(!
IsPlayerInRangeOfPoint(playerid7.52485.4292,-2120.2351,13.5469) && !IsPlayerInRangeOfPoint(playerid7.52460.3623,-2119.8494,13.5530)
    && !
IsPlayerInRangeOfPoint(playerid7.52509.6421,-2120.6365,13.5469))
    {
        
SendClientMessage(playeridCOLOR_RED"You are not near the loading place.");
        return 
1;
    }
  {
    
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"Welcome to the factory, what would you like to deliver?""{00B000}Drinks and Food($500) \n{00B000}Clothing($1000) \n{A70000}Drugs($1500) \n{A70000}Illegal Fire Arms($2000)""Load Truck""Cancel");
    return 
1;
  }
  return 
1// // // // // //  this is the line 44 

Reply
#2

pawn Код:
CMD:loadtruck(playerid, params[])
{
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "You are not driving a truck from the depot.");
    if(!IsPlayerInRangeOfPoint(playerid, 7.5, 2485.4292,-2120.2351,13.5469) && !IsPlayerInRangeOfPoint(playerid, 7.5, 2460.3623,-2119.8494,13.5530)
    && !IsPlayerInRangeOfPoint(playerid, 7.5, 2509.6421,-2120.6365,13.5469))
    {
        SendClientMessage(playerid, COLOR_RED, "You are not near the loading place.");
        return 1;
    }
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Welcome to the factory, what would you like to deliver?", "{00B000}Drinks and Food($500) \n{00B000}Clothing($1000) \n{A70000}Drugs($1500) \n{A70000}Illegal Fire Arms($2000)", "Load Truck", "Cancel");
    return 1;
}
Reply
#3

Fixed by Konstantinos +rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)