SA-MP Forums Archive
How can i fix this error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How can i fix this error (/showthread.php?tid=562158)



How can i fix this error - LuisPark - 07.02.2015

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,


Re: How can i fix this error - HazardouS - 07.02.2015

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


Re: How can i fix this error - LuisPark - 07.02.2015

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


Re: How can i fix this error - HazardouS - 07.02.2015

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


Re: How can i fix this error - CalvinC - 07.02.2015

You forgot a closing bracket at the end.