Problem 4
#1

Hi, I have this script:

In the first line by colour code:

Код:
new door;

forward outdoor();
In OnGameModeInit:

Код:
door=CreateObject(1569, 245.791015625, 72.68359375, 1002.640625);
In OnPlayerCommandText:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  new string[256];
	new playermoney;
	new sendername[MAX_PLAYER_NAME];
	new giveplayer[MAX_PLAYER_NAME];
	new playername[MAX_PLAYER_NAME];
	new cmd[256];
	new tmp[256];
	new giveplayerid, moneys, idx;
	cmd = strtok(cmdtext, idx);
	
if( !strcmp(cmdtext, "/door", true) )
  {
  MoveObject(door, 0.0000, 0.0000, 111.15942382813);
  SetTimer("outdoor",5000, false);
  return 0;
  }
In Game:

Код:
Say: /door (in LSPD HQ)
Server unknow command.
What should I do to go xD?
Reply


Messages In This Thread
Problem 4 - by eXtr1kE - 22.12.2009, 11:29
Re: Problem 4 - by [HiC]TheKiller - 22.12.2009, 11:44
Re: Problem 4 - by patchkinson - 22.12.2009, 11:49
Re: Problem 4 - by eXtr1kE - 22.12.2009, 14:02
Re: Problem 4 - by Deat_Itself - 22.12.2009, 14:29
Re: Problem 4 - by eXtr1kE - 22.12.2009, 14:55
Re: Problem 4 - by Deat_Itself - 22.12.2009, 15:19
Re: Problem 4 - by eXtr1kE - 22.12.2009, 17:20

Forum Jump:


Users browsing this thread: 4 Guest(s)