PDA

View Full Version : How can i fix this error


LuisPark
07/02/2015, 11:24 AM
Code :
CMD:datbanhlenxe(playerid, params[])
{
if(PlayerInfo[playerid][pRFLTeam] != 0) {
SendClientMessageEx(playerid,COLOR_GREY," Ban chua nau banh pizza !");
}
else
{
new closestcar = GetClosestCar(playerid);
if(IsPlayerInRangeOfVehicle(playerid, closestcar, 10.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, :D

HazardouS
07/02/2015, 11:26 AM
Probably your definition of SendClientMessageEx is broken. It might also be GetClosestCar or IsPlayerInRangeOfVehicle or even IsABike.

LuisPark
07/02/2015, 11:28 AM
What do you mean, i just show me a lot of eror, maybe i got error from " else , if , ; , { . }"

HazardouS
07/02/2015, 11:38 AM
Show us the errors and maybe your custom functions that you used in that command. Otherwise we can't guess what the problem is.

CalvinC
07/02/2015, 01:10 PM
You forgot a closing bracket at the end.