SA-MP Forums Archive
attach camera - 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)
+--- Thread: attach camera (/showthread.php?tid=600293)



attach camera - GeneralAref - 06.02.2016

when i use this code in game i crash from server how to fix it?
PHP код:
CMD:a(playerid,params[]){
    new 
object =CreatePlayerObject(playerid,1204.615101871.1462414.01680,   0.000000.000000.00000);
    
AttachCameraToPlayerObject(playerid,object);
    return 
1;} 



Re: attach camera - Vince - 06.02.2016

"1" is not a valid object model. Models 1 through 399 are reserved for peds, models 400 trough 611 are reserved for cars and anything higher than that are actual objects.