29.02.2012, 20:20
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):
and i made a command to asign
and
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:
Can anyone help me?
I tryed making a new Float (example: new Float:ObjectY) and defining ObjectY = y+1 but still nothing...
Please help!
Код:
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; }
Код:
PlayerMovingObject
Код:
Object // when making objects
Код:
y = y+1;
I tryed making a new Float (example: new Float:ObjectY) and defining ObjectY = y+1 but still nothing...
Please help!