13.07.2011, 17:04
It still won't work, that's the code I used:
OnPlayerRequestClass:
PHP код:
forward CameraMovement(playerid);
public CameraMovement(playerid)
{
if(LoginDialog[playerid])
{
new Float:p[3];
GetPlayerCameraPos(playerid,p[0],p[1],p[2]);
SetPlayerCameraPos(playerid,p[0],p[1]+1,p[2]);
print("Camera moved");
movetimer[playerid] = SetTimerEx("CameraMovement",50,false,"i",playerid);
return 1;
}
return 1;
}
PHP код:
movetimer[playerid] = SetTimerEx("CameraMovement",50,false,"i",playerid);