Constant error
#1

Code :
PHP код:
CMD:laybanhraxe(playeridparams[])
{
        new 
closestcar GetClosestCar(playerid);
        if(
IsPlayerInRangeOfVehicle(playeridclosestcar10.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;
        {
        
SetPlayerAttachedObjectplayerid015821, -0.0646130.5207600.0000000.00000084.2173910.0000001.0000001.0000001.000000 );
        
ApplyAnimation(playerid"CARRY""crry_prtial"4.011111);
        
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 217loose indentation
./includes/commands.pwn(57022) : warning 211possibly unintended assignment
./includes/commands.pwn(57022) : error 008must be a constant expressionassumed zero
./includes/commands.pwn(57027) : error 028invalid subscript (not an array or too many subscripts): "SendClientMessageEx"
./includes/commands.pwn(57027) : warning 215expression has no effect
./includes/commands.pwn(57027) : warning 215expression has no effect
./includes/commands.pwn(57027) : warning 215expression has no effect
./includes/commands.pwn(57027) : error 001expected token";"but found ")"
./includes/commands.pwn(57027) : error 029invalid expressionassumed zero
./includes/commands.pwn(57027) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB 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)