SA-MP Forums Archive
What's wrong here? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What's wrong here? (/showthread.php?tid=276699)



What's wrong here? - svaba - 14.08.2011

I wanted to make this command only for 7+ level people, now i changed my level to 8 and this doesn't work. What's wrong?

Код:
CMD:waffenlager(playerid,params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0,-251.6501,4355.1094,88.7158))
    {
        if(SpielerInfo[playerid][sNiveau] == 7) ShowPlayerDialog(playerid, WAFFENLAGER_DIALOG, DIALOG_STYLE_LIST, "Waffenlager","Messer\nPistole\nMP5\nM4\nAK47\nSniper","Nehmen","");
		else SendClientMessage(playerid, FARBE_ROT, "Dein Niveau ist zu niedrig!");
    }
    else
	{
        SendClientMessage(playerid, FARBE_ROT, "Du stehst nicht neben den Waffenlager!");
        return 1;
    }
    return 1;
}



Re: What's wrong here? - woot - 14.08.2011

https://sampwiki.blast.hk/wiki/Control_Structures#Operators

pawn Код:
if(SpielerInfo[playerid][sNiveau] >= 7)



Re: What's wrong here? - svaba - 14.08.2011

Ye thanks !