A little help (+rep).
#1

Hey guys, I just tried to make a simple smokebomb filterscript, but for some reason when I do the cmd ingame, the text dosen't get displayed and the object does not appear, check out the code and please tell me the problem:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/smokebomb", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid, -1, "You planted a smokebomb!");
		new Float:x, Float:y, Float:z;
		GetPlayerPos(playerid, x, y, z);
		CreateObject(18716, x, y, z, 0, 0, 0, 250.0);
		return 1;
	}
	return 0;
}
Reply


Messages In This Thread
A little help (+rep). - by [Twixx] - 26.07.2012, 16:46
Re: A little help (+rep). - by Akira297 - 26.07.2012, 16:48
Re: A little help (+rep). - by [Twixx] - 26.07.2012, 16:51
Re: A little help (+rep). - by Stigg - 26.07.2012, 16:51
Re: A little help (+rep). - by Jarnu - 26.07.2012, 16:53
Re: A little help (+rep). - by Roko_foko - 26.07.2012, 16:55
Re: A little help (+rep). - by [Twixx] - 26.07.2012, 16:57

Forum Jump:


Users browsing this thread: 1 Guest(s)