SA-MP Forums Archive
Biz owner isnt saving. - 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: Biz owner isnt saving. (/showthread.php?tid=371163)



Biz owner isnt saving. - Strech - 22.08.2012

Guys,i made a Business System.It saves the owner on the icon.But after he enters inside,and tryes to use /vault for his cash or anything else,it says You Don't Own a Business.


Re: Biz owner isnt saving. - =WoR=G4M3Ov3r - 22.08.2012

Might wanna show us the code ? I don't remember being psychic.


Re: Biz owner isnt saving. - Strech - 22.08.2012

Quote:
Originally Posted by =WoR=G4M3Ov3r
Посмотреть сообщение
Might wanna show us the code ? I don't remember being psychic.
Which code sir?


Re: Biz owner isnt saving. - TaLhA XIV - 22.08.2012

PHP код:
if(PlayerInfo[i][Owned] == && strcmp(pName,BizInfo[i][Owner]) != 0) return SendClientMessage(playerid,-1,"You aren't the owner of this Business!"); 
Just edit it as you want and this will check that if the player is the owner or not.This is an example from my house system.
((+rep if I helped thanks.;p))


Re: Biz owner isnt saving. - =WoR=G4M3Ov3r - 22.08.2012

Quote:
Originally Posted by Strech
Посмотреть сообщение
Which code sir?
Show us the whole business system, along with the commands.


Re: Biz owner isnt saving. - Strech - 22.08.2012

Quote:
Originally Posted by TaLhA XIV
Посмотреть сообщение
PHP код:
if(PlayerInfo[i][Owned] == && strcmp(pName,BizInfo[i][Owner]) != 0) return SendClientMessage(playerid,-1,"You aren't the owner of this Business!"); 
Just edit it as you want and this will check that if the player is the owner or not.This is an example from my house system.
((+rep if I helped thanks.;p))
enum bizInfo
{
bType,
bStatus,
bOwner[32],
Float:bX,
Float:bY,
Float:bZ,
bPickup,
bMoney,
bProducts,
Text3D:bText,
bSold,
bLevel,
bPrice,
bAP
}
new BizInfo[MAX_BIZ][bizInfo];

My enums.


Re: Biz owner isnt saving. - TaLhA XIV - 22.08.2012

DELETED..


Re: Biz owner isnt saving. - TaLhA XIV - 22.08.2012

PHP код:
if(BizInfo[i][bStatus] == && strcmp(pName,BizInfo[i][bOwner]) != 0) return SendClientMessage(playerid,-1,"You aren't the owner of this Business!");