[POMOC] Vozila

Započeo [IG] Bole, Februar 21, 2016, 15:49:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTA-RP edit
Detaljan opis problema: Evo ovako upalim kucni server ili host ne bitno, udjem sve lepo radi izadjem i opet udjem i kucam /veh list to je komanda za listu od igraca vozila pise SERVER: Unknown command. i nece da mi spawna vozilo a kad prvi put udjem na server kad ga upalim sve lepo radi cim opet udjem ovako zabaguje?
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info

Postavi deo skripte.Kod ovakvih stvari uvek moras da postavis deo skripte.
You have enemies? Good. That means you've stood up for something, sometime in your life.

Nije buraz samo to problem, vec i textdrawovi na loginu nece da se pojave a prvi put se pojave...
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info

Citat: [BU] Bojan_Bole poslato Februar 21, 2016, 15:52:44 POSLE PODNE
Nije buraz samo to problem, vec i textdrawovi na loginu nece da se pojave a prvi put se pojave...
pa postavi kodove ---

public OnPlayerRequestClass(playerid, classid)
{
    PlayerInfo[playerid][pCurrentBusiness] = 0;
PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];

if (gPlayerLogged[playerid] != 1 && IsPlayerNPC(playerid) !=1)
{
ClearChatbox(playerid, 20);
if (gPlayerAccount[playerid] != 0)
{
ClearChatbox(playerid, 10);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
SendClientMessage(playerid, COLOR_YELLOW, "Upisite vasu lozinku u dialog prozor! Imate 30 sekundi vremena.");
new loginstring[512];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"Sada se mozete ulogovati na server, upisujuci vasu lozinku\nu polje ispod. Molimo vas upisite ispravnu lozinku\ninace cete biti kikovani.\n\nImate 3 pokusaja za upisivanje lozinke, u protivnom\ncete takodje dobiti kick sa naseg servera.\n\nKada upisite lozinku stisnite na taser 'Prijavi se',\nako zelite odustati stisnite 'Odustani'");
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"Prijava",loginstring,"Prijavi se","Odustani");
}
else
{
gPlayerAccount[playerid] = 0;
ClearChatbox(playerid, 10);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
SendClientMessage(playerid, COLOR_LIGHTRED, "Upisite zeljenu lozinku u dialog prozor! Imate 30 sekundi vremena.");
new regstring[512];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Sada se mozete registrovati na server, upisujuci zeljenu lozinku\nu polje ispod. Molimo vas upisite slozenu lozinku\ninace cete vam lako uci na nalog.\n\nImate 3 pokusaja za upisivanje lozinke, u protivnom\ncete takodje dobiti kick sa naseg servera.\n\nKada upisite lozinku stisnite na taser 'Registruj se',\nako zelite odustati stisnite 'Odustani'");
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Registruj se","Odustani");
}
//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
}
else SpawnPlayer(playerid);
return false;
}


Eto to je za login kad prvi put udjem na server kad ga upalim sve lepo pokazuje kad drugi put udjem nece da pokaze textdarw
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info

Stavi sve to na jedan timer ( OnPlayerConnect ).
You have enemies? Good. That means you've stood up for something, sometime in your life.

Odradio sam i to ali ne pomaze
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info

Ove textdrawove moras postaviti u Public OnPlayerConnect i OnPlayerRegister          TextDrawShowForPlayer(playerid, Textdraw0);
         TextDrawShowForPlayer(playerid, Textdraw1);
         TextDrawShowForPlayer(playerid, Textdraw2);
         TextDrawShowForPlayer(playerid, Textdraw3);
         TextDrawShowForPlayer(playerid, Textdraw4);
         TextDrawShowForPlayer(playerid, Textdraw5);
         TextDrawShowForPlayer(playerid, Textdraw6);

Nemoguce je da ne radi.

Moguce kad startujem server i udjem prvi put radi sve kad izadjem opet udjem ne radi.
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info

Jel odradis restart kad izadjes ili ti kad izadjes a ostane upaljen i opet udjes ne prikazuju se?

Ne odradim restart, kad odradim restart onda radi.
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info

Ajde daj sve da vidim kako si ti to uradio i gde si sta stavio

Sta te zanima imas gore kod koji sam ostavio.
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info

Lol kao da cu ti ukrasti, ali nema veze ovo sto si ti gore postavio blage veze nema postavljanje textdrawova se vrsti tako sto: definisises na vrhu svoj textdrew Npr: new Text:Bojan; nakon toga postavis svoj textdraw pod Public OnGameModeInt sa definijiom Bojan); posle pod Public OnPlayerConnect i OnPlayerRegisterTextDrawShowForPlayer(playerid, Bojan); i na Public OnPlayerDisconect da unistava textdraw i na OnPlayerSpawn da ukloni jer se igrac spawnovao i to je to. To je prosto nemoguce da tebi ne radi nesto od ovoga nisi uradio

To je sve uradjeno, nisam glup da to ne znam , mene buni to sto prvi put sve lepo radi ali opet kad udjem ne radi...
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info