Detaljan opis problema: Kada odgledam tutorial i sve taman da se spawn-am ono "Server close the connection"
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):
public OnPlayerSpawn(playerid)
{
PostaviSpawn(playerid);
TextDrawHideForPlayer(playerid, Textdraw0);
PlayerInfo = 0.0;
PlayerInfo = true;
KillTimer( PlayerInfo );
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
SetCameraBehindPlayer(playerid);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, LogoAG0);
TextDrawShowForPlayer(playerid, LogoAG1);
TextDrawShowForPlayer(playerid, LogoAG2);
TextDrawShowForPlayer(playerid, LogoAG3);
TextDrawShowForPlayer(playerid, LogoAG4);
TextDrawShowForPlayer(playerid, LogoAG5);
TextDrawShowForPlayer(playerid, Time);
TextDrawShowForPlayer(playerid, Time2);
TextDrawShowForPlayer(playerid, Time3);
TextDrawShowForPlayer(playerid, TDCH);
TextDrawShowForPlayer(playerid, TDCH1);
TextDrawShowForPlayer(playerid, TDCH2);
if(PVar == 0)
{
SCM(playerid, 1, "** Moraš se prije logirat pa se tek onda spawnati.");
Kick(playerid);
}
if(spawnan == 5)
{
TextDrawShowForPlayer(playerid, Textovi);
OcistiChat(playerid);
SMF(playerid, ""ljubicasta"Dobro dosao: "plava"[%s] ", Ime(playerid));
SMF(playerid, ""ljubicasta"Tvoj Status Ukratko: "zelena"Level"plava"[%d] | "zelena"Respekti"plava"[%d/%d] | "zelena"Sati igre"plava"[%d]", PVar, PVar, PVar, PVar);
//ReMoney(playerid);
GivePlayerMoney(playerid, PVar);
SpawnPlayer(playerid);
pltt = SetTimerEx("Placa", 1000, 1, "d", playerid);
spawnan = 0;
}
if(MapIconsShown != 1)
{
for(new i = 0;i {
format(bizfajl,sizeof(bizfajl),"Firme/%i.json",i);
CreateDynamicMapIcon(djFloat(bizfajl, "BusX"), djFloat(bizfajl, "BusY"), djFloat(bizfajl, "BusZ"), BusinessInfo, Crvena, -1,-1,-1, 450.0);
MapIconsShown = 1;
}
return 1;
}
TextDrawShowForPlayer(playerid, ShadowsRandom);
return true;
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava