SA-MP Forums Archive
CreateObject not creating - 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: CreateObject not creating (/showthread.php?tid=617097)



CreateObject not creating - Shinja - 15.09.2016

PHP код:
new FloatplxFloatplyFloatplz;
GetPlayerPos(playeridplxplyplz);
Obj[playerid] = CreateObject(918plxplyplz 0.30.00.00.0);
Obje[playerid] = CreateObject(18728plxplyplz0.00.00.0);
print(
"Executed"); 
This code is executing but not creating objects, why?


Re: CreateObject not creating - Marricio - 15.09.2016

Print Obj and Obje values to see what they are being assigned to.


Re: CreateObject not creating - Josh_Main - 15.09.2016

PHP код:
new FloatplxFloatplyFloatplz
GetPlayerPos(playeridplxplyplz); 
Obj[playerid] = CreateObject(918plxplyplz+2.00.00.00.0); 
Obje[playerid] = CreateObject(18728plxplyplz+2.00.00.00.0); 
print(
"Executed"); 
Would that work? Maybe the object you were placing were being placed under the ground?

Also make sure you haven't reached your CreateObject limit man


Re: CreateObject not creating - Shinja - 15.09.2016

Fixed thanks!