[Help] Floats
#1

Ok so I made a Filterscript witch allows me to create/remove objects ingame, so it's like an 'INGAME MAP EDITOR' but the problem is, when i try to make a command to move the objects nothing happens ... i made it like this (just an example):

Код:
if(strcmp(cmd, "/moveleft", true) == 0)
{
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x, y, z);
	MoveObject(Object[PlayerMovingObject[playerid]], x, y, z, 9999, 0.0, 0.0, 0.0);
	y = y+1;
	return 1;
}
and i made a command to asign

Код:
PlayerMovingObject
and

Код:
Object // when making objects
So it moves the object to my position.. but when i type the command in again it doesn't move, so i guess the problem is:

Код:
y = y+1;
Can anyone help me?

I tryed making a new Float (example: new Float:ObjectY) and defining ObjectY = y+1 but still nothing...

Please help!
Reply


Messages In This Thread
[Help] Floats - by Tika Spic - 29.02.2012, 20:20
Re: [Help] Floats - by FuTuяe - 29.02.2012, 20:53
Re: [Help] Floats - by TheArcher - 29.02.2012, 21:02
Re: [Help] Floats - by Tika Spic - 29.02.2012, 22:23
Re: [Help] Floats - by TheArcher - 01.03.2012, 13:43
Re: [Help] Floats - by Ballu Miaa - 01.03.2012, 13:48

Forum Jump:


Users browsing this thread: 2 Guest(s)