I'm a pain in the ass.
#7

The errors occur when compiling the gamemode.

Here's what I try to compile in the gamemode:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/enter", cmdtext, true, 10) == 0)
	{
    (IsPlayerInRangeOfPoint(playerid, 1.0, 172.66, -152.10, 1.72)); // checks if in range of the /enter point

        SetPlayerPos(playerid, 170.75, -153.94, 1.81); //Sets there new position
        RemoveObjectVar = RemoveBuilding(13200, 158.3594, -176.3047, 5.5703, 0.25);
		RemoveObjectVar2 = RemoveBuilding(12923, 158.3594, -176.3047, 5.5703, 0.25);
        return 1;
    }
   if (strcmp("/exit", cmdtext, true, 10) == 0)
   {
   if(IsPlayerInRangeOfPoint(playerid, 1.0, 170.85, -153.85, 1.48)) // Checks if near the exit door
    {
    	RestoreBuilding(RemoveObjectVar);
    	RestoreBuilding(RemoveObjectVar2);
        SetPlayerPos(playerid, 172.24, -152.26, 1.81);
    }
    return 1;
}
Reply


Messages In This Thread
I'm a pain in the ass. - by Peter Alex - 22.07.2012, 11:39
Re: I'm a pain in the ass. - by doreto - 22.07.2012, 11:44
Re: I'm a pain in the ass. - by Peter Alex - 22.07.2012, 11:44
Re: I'm a pain in the ass. - by doreto - 22.07.2012, 11:49
Re: I'm a pain in the ass. - by Peter Alex - 22.07.2012, 11:49
Re: I'm a pain in the ass. - by doreto - 22.07.2012, 11:55
Re: I'm a pain in the ass. - by Peter Alex - 22.07.2012, 11:57
Re: I'm a pain in the ass. - by [MM]RoXoR[FS] - 22.07.2012, 12:04
Re: I'm a pain in the ass. - by Peter Alex - 22.07.2012, 12:09
Re: I'm a pain in the ass. - by [MM]RoXoR[FS] - 22.07.2012, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)