17.07.2009, 14:33
My fellow citizens,
I have a PlayerToPoint probl.
On top.
OnGameModeInit
On Bottom
I have no errors, but the script doesn't work properly. When I have less than $200 it constantly says "Dude, You Need $200 To Complete The Test!". And when I have $200 or more it stops saying that but nothing else happens. So the fence won't move. My test has failed ![Cry](images/smilies/cry.gif)
Please help me out of this pit.
Thanks in advance.
I have a PlayerToPoint probl.
On top.
Код:
new PlayerToPointFenceTest; forward PlayerToFence(playerid);
Код:
SetTimer("PlayerToFence", 1000, 1); PlayerToPointFenceTest = CreateDynamicObject(971, 2038.736206, 1344.095581, 14.241793, 0.0000, 0.0000, 270.0000);
Код:
public PlayerToFence(playerid) { if(PlayerToPoint(2.0, playerid, 2038.736206, 1344.095581, 14.241793)) { if(GetPlayerScore(playerid) > 200) { GameTextForPlayer(playerid, "Test Kompletet", 5000, 5); MoveDynamicObject(PlayerToPointFenceTest, 2036.600708, 1331.700439, 14.390229, 0.0000); } } else { if(GetPlayerScore(playerid) < 200) { GameTextForPlayer(playerid, "Dude, You Need $200 To Complete The Test!", 5000, 5); } } return 1; }
![Cry](images/smilies/cry.gif)
Please help me out of this pit.
Thanks in advance.
![Smiley](images/smilies/smile.png)