operators - 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)
+--- Thread: operators (
/showthread.php?tid=521964)
operators -
Dziugsas - 25.06.2014
Hello guys!
Simple stuff here:
Код:
if(PlayerInfo[playerid][pAdmin] <= 5) return 0;
Its says Unknown command even if im 5 level admin.
Whats wrong?
tried like this
Код:
if(PlayerInfo[playerid][pAdmin] != 5) return 0;
same...
Re: iterators -
Jack_Leslie - 25.06.2014
What exactly are you trying to do?
Re: iterators -
Dziugsas - 25.06.2014
Im trying to create a house if player is admin 5 lvl create house if not return 0;
Re: operators -
Jack_Leslie - 25.06.2014
pawn Код:
CMD:createhouse(playerid, params[])
{
if(PlayerInfo[playerid][Admin] >= 5)
{
// create house
}
return 1;
}
Re: operators -
Dziugsas - 25.06.2014
Server: Unknown command. even if im 5 lvl admin.
Re: operators -
Jack_Leslie - 25.06.2014
Show us your whole command.
Re: operators -
Dziugsas - 25.06.2014
Fixed.Still thank you for your time.Rep+