/buybizz command ?
#1

Код:
CMD:buybizz(playerid,params[])
{
	if(IsPlayerConnected(playerid))
	{
		for(new mID = 0; mID <= MAX_BIZZ; mID++)
		{
	  		if(PlayerInPoint(playerid, 2.0, BizzInfo[mID][bPickupX], BizzInfo[mID][bPickupY], BizzInfo[mID][bPickupZ]))
			{
			BizzInfo[mID][bOwned] = 1;
			format(BizzInfo[mID][bOwner], sizeof(stri), "%s", GetName(playerid));
			SendClientMessage(playerid, -1, "You bought bizz);
			}
		}
	}
	return 1;
}
Problem is that this returns as 0, so it is wrong command, but command goes true.
Reply
#2

what do you need? or what are you trying to explain?
Reply
#3

Im trying to explane that, this command works, but returns as WRONG Command . return 0 or something. If I do /buybizz, then it returns ZcMD Wrong command message.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)