16.01.2017, 18:29
I have dyanmic org system but I have one problem.
Here is enum
that bool is there so I can check if org exist.. I set it to true when I load orgs and when I create orgs.
It says that ID does not exist even if it exist.. any ideas??
Here is enum
PHP код:
enum orgInfo
{
oID,
oName[32],
oLeader[25],
Float:oExitX,
Float:oExitY,
Float:oExitZ,
Float:oIntX,
Float:oIntY,
Float:oIntZ,
oMember1[25],
oMember2[25],
oMember3[25],
oMember4[25],
oMember5[25],
oMember6[25],
oMember7[25],
oMember8[25],
oMember9[25],
oMember10[25],
oSef,
oMoney,
oDrugs,
Float:oSefX,
Float:oSefY,
Float:oSefZ,
oInt,
oVW,
bool: orgExist,
}
PHP код:
CMD:orgname(playerid, params[])
{
if(PlayerInfo[playerid][Admin] < 5)
/*
blah blah blah
*/
if(OrgInfo[org][orgExist])
{
ERROR(playerid, "ID does not exist");
return 1;
}