SA-MP Forums Archive
/buybizz command ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /buybizz command ? (/showthread.php?tid=226978)



/buybizz command ? - NewbBeginner - 16.02.2011

Код:
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.


Re: /buybizz command ? - UDV Production - 16.02.2011

what do you need? or what are you trying to explain?


Re: /buybizz command ? - NewbBeginner - 16.02.2011

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.