SA-MP Forums Archive
Why not show objects - 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: Why not show objects (/showthread.php?tid=558726)



Why not show objects - Karolukas123 - 18.01.2015

Welcome to the topic title Do you understand, ask why not show objects .. As gamemode to connect on localhost but shows how objects using Host object does not display shows only removeObject .. .. What could it be?


Re: Why not show objects - Ironboy - 18.01.2015

CreateObject is confined to 1000, if you have more than 1000 objects then you have to switch to streamer.


Re: Why not show objects - Lynn - 18.01.2015

Make sure their listed under GameModeInit or the function is called under there(If you're loading them from a function such as LoadObjects.)
Also try using this streamer:
https://sampforum.blast.hk/showthread.php?tid=102865
Change CreateObject to CreateDynamicObject once streamer is installed.


Re: Why not show objects - Karolukas123 - 18.01.2015

object about 600..


Re: Why not show objects - Lynn - 18.01.2015

Show us the code that will help further.


Re: Why not show objects - Karolukas123 - 18.01.2015

Quote:
Originally Posted by Lynn
Посмотреть сообщение
Show us the code that will help further.
What code ?? all my script ??


Re: Why not show objects - Lynn - 18.01.2015

Just what's under GameModeInit(Just the Objects that aren't showing.)


Re: Why not show objects - Karolukas123 - 18.01.2015

}

public OnGameModeInit()
{
SendRconCommand("mapname test");

new versionstr[20];
format(versionstr, sizeof(versionstr), "%s", ServerioVersija);
SetGameModeText(versionstr);

if(GetMaxPlayers() > MAX_PLAYERS)
{
print("GetMaxPlayers > MAX_PLAYERS, padidinkite MAX_PLAYERS skaiciu.");
SendRconCommand("exit");
return 1;
}

mysql_debug(true); // true - Debug'as ijungtas.
mysql_connect(MySQL_HOST, MySQL_USER, MySQL_DATA, MySQL_PASS);
if(mysql_ping() >= 1) print("Prisijungeme prie MySQL sekmingai!");
else SendRconCommand("exit");

for(new pick; pick < MAX_PICKUPS; pick++) DestroyPickup(pick);

EnableStuntBonusForAll(false);
SetNameTagDrawDistance(30);
LimitGlobalChatRadius(20);
AllignMaxPlayers();
DisableInteriorEnterExits();
ManualVehicleEngineAndLights();
ShowPlayerMarkers(0);
LoadSpawns();
EnableLobiai();
CreateMenues();
LoadVehicles();
LoadObject();