Help with timer
#1

So i want to players camera change with timers... But

Quote:

..
SetPlayerCameraPos(playerid, 273.7448,4648.1387,1374.7773);
SetPlayerCameraLookAt(playerid, 273.7458,4648.2017,1313.1041);
SetTimer("cam2", 5000, 0);
return 1;
}
public cam2()
{
SetPlayerCameraPos(playerid, 272.8673,3585.2646,732.0616);
SetPlayerCameraLookAt(playerid, 273.0843,3578.4395,667.9236);
SetTimer("cam3", 5000, 0);
return 1;
}
...

error 017: undefined symbol "playerid"
that i error get idk will work script if i do new playerid;
Reply
#2

pawn Код:
..
SetPlayerCameraPos(playerid, 273.7448,4648.1387,1374.7773);
SetPlayerCameraLookAt(playerid, 273.7458,4648.2017,1313.1041);
SetTimerEx("cam2", 5000, 0, "d", playerid); //Here!
return 1;
}
public cam2(playerid) //Here!
{
SetPlayerCameraPos(playerid, 272.8673,3585.2646,732.0616);
SetPlayerCameraLookAt(playerid, 273.0843,3578.4395,667.9236);
SetTimer("cam3", 5000, 0, "d", playerid); //Here!
return 1;
}
...
Try now.
Reply
#3

Thanks,yea that was missing.

Nice new signatue
Reply
#4

Thanks, and no problem.

Where did your one go?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)