SA-MP Forums Archive
WHY does it not work? - 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: WHY does it not work? (/showthread.php?tid=662855)



WHY does it not work? - playstores - 13.01.2019

stock isORGMechanicLcensed(playerid)
{
new org = PlayerInfo[playerid][pOrgMember];

if(org !=0 && OrgInfo[org][OrgMech] == 1) return 1;
return 0;
}

Its always FALSE even if my ORG has a mechanic license


Re: WHY does it not work? - jop9888 - 13.01.2019

We'd need more code to see whats going wrong.


Re: WHY does it not work? - playstores - 13.01.2019

not really,

I am just checking for isORGMechanicLcensed(playerid) nothing more.


The error is in this stock


Re: WHY does it not work? - ApolloScripter - 13.01.2019

Hello playstores, if the function is always returning "false" the problem must be in the manipulation of these variables, better analyze where they are defined and how they are being used, because there is nothing wrong with this STOCK, search, and contact us.