01.12.2010, 20:41
You are missing a bracket!
pawn Код:
if(strcmp(cmd, "/getmats", true) == 0)
{
GetPlayerName(playerid, playername, sizeof(playername));
if(PlayerInfo[playerid][pJob] == 9) && IsPlayerInRangeOfPoint(playerid,10.0,316.2688,1119.7667,1083.8828)) // Route 1
{
if(MatsRoute[playerid] == 0 || MatsRoute[playerid] == 1)
{
if(MatsHolding[playerid] < 10)
{
ShowMatsMenu(playerid,1);
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
return 1;
}
else
{
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "I can't sell you anymore, go deliver them.");
return 1;
}
}
else
{
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "You are already doing a other route");
return 1;
}
}
else
{
PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "You are not a arms dealer");
} // You were missing this one.
return 1;
}