Biz owner isnt saving.
#1

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.
Reply
#2

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

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

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))
Reply
#5

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

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.
Reply
#7

DELETED..
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)