SA-MP Forums Archive
Help with timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with timer (/showthread.php?tid=181621)



Help with timer - Dime - 06.10.2010

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;


Re: Help with timer - Jeffry - 06.10.2010

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.


Re: Help with timer - Dime - 06.10.2010

Thanks,yea that was missing.

Nice new signatue


Re: Help with timer - Jeffry - 07.10.2010

Thanks, and no problem.

Where did your one go?