Posts: 400
Threads: 52
Joined: Apr 2012
Reputation:
0
I'm very frustrated with this. Why EnablePlayerCameraTarget is not working in my VPS? even though my VPS has unlimited bandwidth. EnablePlayerCameraTarget works perfectly in my local host. Can anyone tell me why? or what's wrong I mean EnablePlayerCameraTarget is not working IG when my server is being hosted at VPS. But when I tried in my local host EnablePlayerCameraTarget works pefectly.
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
Show us some code example please.
It's working for me, and I'm sure it's working for others so it might be the script. Any differences between your local Server and VPS (maybe Linux?) Server?
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
Best for testing would be printing (or sending a client message) of the ID GetPlayerCameraTargetDynObject returns. That way you know if it returns anything useful at all, or INVALID_OBJECT_ID all the time. That would eliminate any errors within the rest of the code.
Is MAX_OBJECTS really correct btw? Shouldn't it be the size of the "LootData" Array? (ignore this if LootData is declared with the size of MAX_OBJECTS)