05.01.2015, 18:08
That's what I got, and I want to define the pickup, I mean each business has it's own information and it's own pickup. So I want that when player pickup the business pickup, he will see business information of the pickup he took.
Код:
for(new idx=1; idx<MAX_BIZ; idx++) { if(pickupid == ?) { new string[256]; if(BizInfo[idx][bFee]) { format(string, sizeof(string), "%s~n~~w~OWNER : %s~n~ENTRANCE FEE : ~g~%d~n~~p~TO USE /ENTER", BizInfo[idx][bName], BizInfo[idx][bOwner], BizInfo[idx][bFee]); } else { format(string, sizeof(string), "%s~n~~w~OWNER : %s~n~ENTRANCE FEE : ~g~FREE~n~~p~TO USE /ENTER", BizInfo[idx][bName], BizInfo[idx][bOwner], BizInfo[idx][bFee]); } GameTextForPlayer(playerid, string, 3000, 5); return 1; } return 1; }