How can i fix this error
#1

Code :
PHP код:
CMD:datbanhlenxe(playeridparams[])
{
    if(
PlayerInfo[playerid][pRFLTeam] != 0) {
    
SendClientMessageEx(playerid,COLOR_GREY," Ban chua nau banh pizza !");
    }
    else
    {
    new 
closestcar GetClosestCar(playerid);
    if(
IsPlayerInRangeOfVehicle(playeridclosestcar10.0))
    {
    if(!
IsABike(vehicleid)
    
SendClientMessageEx(playerid,COLOR_GREY," Ban khong gan mot chiec xe nao do !");
    return 
1;
    }

I got fatal error, can someone edit it,
Reply
#2

Probably your definition of SendClientMessageEx is broken. It might also be GetClosestCar or IsPlayerInRangeOfVehicle or even IsABike.
Reply
#3

What do you mean, i just show me a lot of eror, maybe i got error from " else , if , ; , { . }"
Reply
#4

Show us the errors and maybe your custom functions that you used in that command. Otherwise we can't guess what the problem is.
Reply
#5

You forgot a closing bracket at the end.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)