Рекомендованные сообщения



Не найдено.

2 posts in this topic

Двери в сампе не коплитятся(

Код: (строку отметил)

	new door_meria[2];
	door_meria[0] = CreateObject(3089, 1469.705322, -1821.648315, 533.299865, 0.000000, 0.000000, 90.000000, 300.00);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	new doortimer;
	if(strcmp(cmd,"/opendoor",true)==0)
	{
    	if(GetPlayerFaction(playerid) != 1) return SendClientMessage(playerid,-1,"Открыто!");
    	{
			MoveObject (door_meria[1], 1492.905395, -1825.048315, 533.299865+0.004, 0.004,0.00000000,0.00000000,90.00000000);  //(28492)
			doortimer = SetTimer ("VorotClose", 10000, 0);
    	}
    	return 1;
	}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	forward VorotClose();
	public VorotClose()
	{
   	 MoveObject(door_meria[1],1492.905395, -1823.648315, 533.299865,2.5)
    	KillTimer(doortimer);
    	return 1;
	}

Ошибки:

(28492) : error 017: undefined symbol "door_meria"
(28492) : warning 215: expression has no effect
(28492) : error 001: expected token: ";", but found "]"
(28492) : error 029: invalid expression, assumed zero
(28492) : fatal error 107: too many error messages on one line

 

*пробелы протыканы неправильно только на форуме!

Share this post


Link to post
Share on other sites
door_meria[1] -> door_meria[]

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.