SA-MP Forums Archive
Objects 0 in server, but code says other... - 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: Objects 0 in server, but code says other... (/showthread.php?tid=598789)



Objects 0 in server, but code says other... - PaskaV - 16.01.2016

Hey guys, i create one server on host, and objects dissapear, server log says:

PHP код:
[23:08:08CreateObject3
[23:08:08CreateDynamicObject5.194
[23:08:08Number of vehicle models47 
Please help me out from this problem, thank you very much

Picture from server: http://imgur.com/Zw3BXl4

best regards, pashka


Re: Objects 0 in server, but code says other... - PaskaV - 16.01.2016

someone?


Re: Objects 0 in server, but code says other... - Sew_Sumi - 16.01.2016

Show the code of where you are creating some of the objects.


Re: Objects 0 in server, but code says other... - radiobizza - 16.01.2016

you put the RemoveBuildingForPlayer in OnGameModeInit ?


Re: Objects 0 in server, but code says other... - PaskaV - 16.01.2016

OnGameModeInit:

LoadObject();

"data/mapp.pwn"


Re: Objects 0 in server, but code says other... - PaskaV - 16.01.2016

Quote:
Originally Posted by radiobizza
Посмотреть сообщение
you put the RemoveBuildingForPlayer in OnGameModeInit ?
OnPlayerConnect, but remove is okey, but objects...


Re: Objects 0 in server, but code says other... - lucamsx - 16.01.2016

Can we see LoadObject?
also i don't think you can load objects from pwn files. Load it from a .txt file, like vehicles from "vehicles" folder. No function, only parameters.


Re: Objects 0 in server, but code says other... - PaskaV - 16.01.2016

stock LoadObjects()
{

CreateDynamicObject....

}


Re: Objects 0 in server, but code says other... - Sew_Sumi - 16.01.2016

Quote:
Originally Posted by PaskaV
Посмотреть сообщение
stock LoadObjects()
{

CreateDynamicObject....

}
If you want help, SHOW THE CODE....



Damnit... You put up the Function, and skip the rest...

Quote:
Originally Posted by lucamsx
Посмотреть сообщение
also i don't think you can load objects from pwn files. Load it from a .txt file, like vehicles from "vehicles" folder. No function, only parameters.
That's totally incorrect.


Re: Objects 0 in server, but code says other... - PaskaV - 16.01.2016

http://pastebin.com/H1hLrUyp