Constant error
#1

Code :
PHP код:
CMD:laybanhraxe(playerid, params[])
{
        new 
closestcar = GetClosestCar(playerid);
        if(
IsPlayerInRangeOfVehicle(playerid, closestcar, 10.0))
        {
            if(!
IsABike(closestcar))
            {
                
SendClientMessageEx(playerid,COLOR_GREY," Ban khong gan mot chiec xe nao do !");
            }
        if(
PlayerInfo[playerid][pFallIntoFun] == 0)
        {
        
SendClientMessageEx(playerid,COLOR_GREY," Ban khong co banh pizza da~ duoc dat vao xe !");
        if{
PlayerInfo[playerid][pFallIntoFun] =1;
        {
        
SetPlayerAttachedObject( playerid, 0, 1582, 1, -0.064613, 0.520760, 0.000000, 0.000000, 84.217391, 0.000000, 1.000000, 1.000000, 1.000000 );
        
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 1, 1, 1, 1, 1);
        
PlayerInfo[playerid][pHunger] =1;
        
SendClientMessageEx{playerid,COLOR_RED," Ban da lay banh ra khoi xe");
        }
       }
      }
     return 
1;
} 
could someone edit and fix for me
PHP код:
./includes/commands.pwn(57019) : warning 217: loose indentation
./includes/commands.pwn(57022) : warning 211: possibly unintended assignment
./includes/commands.pwn(57022) : error 008: must be a constant expression; assumed zero
./includes/commands.pwn(57027) : error 028: invalid subscript (not an array or too many subscripts): "SendClientMessageEx"
./includes/commands.pwn(57027) : warning 215: expression has no effect
./includes/commands.pwn(57027) : warning 215: expression has no effect
./includes/commands.pwn(57027) : warning 215: expression has no effect
./includes/commands.pwn(57027) : error 001: expected token: ";", but found ")"
./includes/commands.pwn(57027) : error 029: invalid expression, assumed zero
./includes/commands.pwn(57027) : fatal error 107: too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
5 Errors
. 
Reply
#2

Dude you need to show the lines that have the errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)