[CrasDetect] Some weird warnings at my server
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Post FS_CreateButton function.
Код:
forward FS_CreateButton(Float:X, Float:Y, Float:Z, Float:Angle);
public FS_CreateButton(Float:X, Float:Y, Float:Z, Float:Angle)
{
	new buttonid;

	for(buttonid = 1; buttonid <= MAX_BUTTONS; buttonid ++)
	    if (!ButtonInfo[buttonid][Created])
			break;

	ButtonInfo[buttonid][ObjectID]	= CreateObject(OBJECT,X,Y,Z,0.0,0.0,Angle);
	ButtonInfo[buttonid][Pos][0]	= X;
	ButtonInfo[buttonid][Pos][1]	= Y;
	ButtonInfo[buttonid][Pos][2]	= Z;
	ButtonInfo[buttonid][Pos][3]	= Angle;
	ButtonInfo[buttonid][Moving]	= false;
	ButtonInfo[buttonid][Created]	= true;

	for (new playerid = 0; playerid < MAX_PLAYERS; playerid ++)
	    ButtonInfo[buttonid][Usable][playerid] = true;

	return buttonid;
}
Reply


Messages In This Thread
[CrasDetect] Some weird warnings at my server - by ChristianIvann09 - 10.04.2014, 15:54
Re: [CrasDetect] Some weird warnings at my server - by Konstantinos - 10.04.2014, 15:58
Re: [CrasDetect] Some weird warnings at my server - by ChristianIvann09 - 10.04.2014, 16:00
Re: [CrasDetect] Some weird warnings at my server - by Konstantinos - 10.04.2014, 16:03
Re: [CrasDetect] Some weird warnings at my server - by ChristianIvann09 - 10.04.2014, 16:11

Forum Jump:


Users browsing this thread: 1 Guest(s)