01.12.2010, 18:29
You don't need to "return 1" after every freaking line of code!
pawn Код:
if(strcmp(cmd, "/getweed", true) == 0)
{
new dlevel = PlayerInfo[playerid][pDrugsSkill];
GetPlayerName(playerid, playername, sizeof(playername));
if(PlayerInfo[playerid][pJob] == 4 && IsPlayerInRangeOfPoint(playerid,10.0,1534.885986, -1451.428589, 16.386175))
{
if(dlevel >= 0 && dlevel <= 50) // Level 1
{
if(PlayerInfo[playerid][pPot] >= 6)
{
SendClientMessage(playerid, COLOR_GREY, "Already have enought pot");
}
ShowDrugsMenu(playerid, 1);
}
}
else SendClientMessage(playerid, COLOR_GREY, "You are not a drug dealer");
return 1;
}