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 Float: plx, Float: ply, Float: plz;
GetPlayerPos(playerid, plx, ply, plz);
Obj[playerid] = CreateObject(918, plx, ply, plz - 0.3, 0.0, 0.0, 0.0);
Obje[playerid] = CreateObject(18728, plx, ply, plz, 0.0, 0.0, 0.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 Float: plx, Float: ply, Float: plz;
GetPlayerPos(playerid, plx, ply, plz);
Obj[playerid] = CreateObject(918, plx, ply, plz+2.0, 0.0, 0.0, 0.0);
Obje[playerid] = CreateObject(18728, plx, ply, plz+2.0, 0.0, 0.0, 0.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!