error 010: invalid function or declaration
#1

PHP код:
error 010invalid function or declaration 
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] > 0)
        {
          
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//line 57032(got error from herE)

Reply
#2

You had an extra bracket.
pawn Код:
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] > 0)
        {
            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; //line 57032(got error from herE)
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)