15.05.2013, 20:06
Hello, I'm making a delivery command but i'mhaving some problems with it.. When i Complie i get all kinds of errors that dont have anything to do with the command :S So my guess is a missplaced bracket.
Hope you can help me find it cuz i couldnt :/
EDIT: Just remembered that i added this too! Maybe that is causing it(this is just the part i added not whole command)
Hope you can help me find it cuz i couldnt :/
pawn Код:
if(strcmp(cmd, "/loadheroin", true) == 0)
{
if(PlayerInfo[playerid][pDelLic] == 0)
{
if(PlayerInfo[playerid][DrugDelivery] == 0)
{
new tmpcar = GetPlayerVehicleID(playerid);
if(IsPlayerInRangeOfPoint(playerid, 15, -2172.7830,-215.0502,35.3203))
{
if(GetVehicleModel(tmpcar) == 433 || GetVehicleModel(tmpcar) == 440 || GetVehicleModel(tmpcar) == 514 || GetVehicleModel(tmpcar) == 428 || GetVehicleModel(tmpcar) == 403 || GetVehicleModel(tmpcar) == 515)
{
SendClientMessage(playerid, COLOR_WHITE, "You are delivering without a Valid Delivery License!");
SendClientMessage(playerid, COLOR_WHITE, "Get cought by a gang or mafia and you end up in alot of trubble!");
PlayerInfo[playerid][DrugDelivery] = 1;
SafeGivePlayerMoney(playerid, -2500);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You can't load with this vehicle!");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not in the heroin loading place.");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You Allready have drug delivery! Go unload them at Los Santos heroin place");
return 1;
}
}
}
if(PlayerInfo[playerid]{pDelLic] == 1)
{
if(PlayerInfo[playerid][DrugDelivery] == 0)
{
new tmpcar = GetPlayerVehicleID(playerid);
if(IsPlayerInRangeOfPoint(playerid, 15, -2172.7830,-215.0502,35.3203))
{
if(GetVehicleModel(tmpcar) == 433 || GetVehicleModel(tmpcar) == 440 || GetVehicleModel(tmpcar) == 514 || GetVehicleModel(tmpcar) == 428 || GetVehicleModel(tmpcar) == 403 || GetVehicleModel(tmpcar) == 515)
{
SendClientMessage(playerid, COLOR_WHITE, "You have started your delivery.");
PlayerInfo[playerid][DrugDelivery] = 1;
SafeGivePlayerMoney(playerid, -2500);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You can't load with this vehicle!");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not in the heroin loading place.");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You Allready have drug delivery! Go unload them at Los Santos heroin place");
return 1;
}
}
pawn Код:
if(IsAMafia(giveplayerid)) {
format(string, sizeof(string), "Illegal Delivery License: %s", text8);
SendClientMessage(giveplayerid, COLOR_GREY, string);
}
else
{