Binary system - 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: Binary system (
/showthread.php?tid=294836)
Binary system -
Dodus - 03.11.2011
Hello, i want to doing the binary system in my gamemode and when i have code like this:
pawn Код:
if(PlayerInfo[playerid][pBizPerm] & PERM_LEADER)
{
// let's doit
return 1;
}
And now i want doing the...
pawn Код:
if(!PlayerInfo[playerid][pBizPerm] & PERM_LEADER)
{
// let's dont do it
return 1;
}
But this are not working! How i can do it other way?
Re: Binary system -
[MG]Dimi - 03.11.2011
if(PlayerInfo[playerid][pBizPerm] == 0 && PERM_LEADER == 0)
{
// let's dont do it
return 1;
}
Re: Binary system - Max_Coldheart - 03.11.2011
instead of doing
pawn Код:
if(!PlayerInfo[playerid][pBizPerm] & PERM_LEADER)
{
// let's dont do it
return 1;
}
You could just add
after the
pawn Код:
if(PlayerInfo[playerid][pBizPerm] & PERM_LEADER)
{
// let's doit
return 1;
}
Re: Binary system -
Dodus - 03.11.2011
Thanks very much ******! Again. :P
THE END, solved.