[Pomoc] Warninzi


Započeo (A) Martinez ツ, Avgust 08, 2014, 15:59:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: UPRP
Detaljan opis problema: pa stavio sam OnPlayerClickTextDraw znaci onako stisnes na login i on ti izbaci dialog i onda se logiras.... ali mi izbaci warninge i nisam ni stiso na login on meni vec izbaci dialog login...
Dio skripte: evo di mi izbaci warninge...
OcistiChat(playerid,16); TextDrawShowForPlayer(playerid, LoginTextdraw[0]);
KillTimer(IntroTimer2[playerid]); TextDrawShowForPlayer(playerid,Intro[2]);

Neke slike/video za lakse dobivanje pomoci(neobavezno): mislim da nije potrebno...

Koje warninze ti baca
Respect- C++, DevoXx

warning 225: unreachable code -------> za oba dva...

Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 16:12:52 POSLE PODNE
warning 225: unreachable code -------> za oba dva...
Nemoguce da ti to baca na ovim linijama.
69

forward Registracija2(playerid);
public Registracija2(playerid)
{
    KillTimer(IntroTimer2[playerid]);
    TextDrawShowForPlayer(playerid, LOG0);
   	TextDrawShowForPlayer(playerid, LOG1);
   	TextDrawShowForPlayer(playerid, LOG2);
   	TextDrawShowForPlayer(playerid, LOG3);
   	TextDrawShowForPlayer(playerid, LOG4);
	TextDrawShowForPlayer(playerid, LOG5);
	TextDrawShowForPlayer(playerid, LOG6);
	TextDrawShowForPlayer(playerid, LOG7);
	TextDrawShowForPlayer(playerid, LOG8);
	TextDrawShowForPlayer(playerid, LOG9);
	TextDrawShowForPlayer(playerid, LOG10);
	TextDrawShowForPlayer(playerid, LOG11);
	TextDrawShowForPlayer(playerid, LOG12);
	TextDrawShowForPlayer(playerid, LOG13);
	TextDrawShowForPlayer(playerid, LOG14);
	TextDrawShowForPlayer(playerid, LOG15);
	TextDrawShowForPlayer(playerid, LOG16);
	TextDrawShowForPlayer(playerid, LOG17);
	TextDrawShowForPlayer(playerid, LOG18);
	TextDrawShowForPlayer(playerid, LOG19);
	TextDrawShowForPlayer(playerid, LOG20);
	TextDrawShowForPlayer(playerid, LOG21);
	TextDrawShowForPlayer(playerid, LOG22);
	KillTimer(IntroTimer2[playerid]);
	SelectTextDraw(playerid, 0xFF8000FF);
	return 1;

	KillTimer(IntroTimer2[playerid]); TextDrawShowForPlayer(playerid,Intro[2]);
	TextDrawShowForPlayer(playerid,Intro[3]); TextDrawShowForPlayer(playerid,Intro[4]);
	IntroTimer3[playerid] = SetTimerEx("Registracija3",5000, false, "i", playerid);
	return 1;
}


forward LoginP(playerid);
public LoginP(playerid)
{
    TextDrawShowForPlayer(playerid, LOG0);
   	TextDrawShowForPlayer(playerid, LOG1);
   	TextDrawShowForPlayer(playerid, LOG2);
   	TextDrawShowForPlayer(playerid, LOG3);
   	TextDrawShowForPlayer(playerid, LOG4);
	TextDrawShowForPlayer(playerid, LOG5);
	TextDrawShowForPlayer(playerid, LOG6);
	TextDrawShowForPlayer(playerid, LOG7);
	TextDrawShowForPlayer(playerid, LOG8);
	TextDrawShowForPlayer(playerid, LOG9);
	TextDrawShowForPlayer(playerid, LOG10);
	TextDrawShowForPlayer(playerid, LOG11);
	TextDrawShowForPlayer(playerid, LOG12);
	TextDrawShowForPlayer(playerid, LOG13);
	TextDrawShowForPlayer(playerid, LOG14);
	TextDrawShowForPlayer(playerid, LOG15);
	TextDrawShowForPlayer(playerid, LOG16);
	TextDrawShowForPlayer(playerid, LOG17);
	TextDrawShowForPlayer(playerid, LOG18);
	TextDrawShowForPlayer(playerid, LOG19);
	TextDrawShowForPlayer(playerid, LOG20);
	TextDrawShowForPlayer(playerid, LOG21);
	TextDrawShowForPlayer(playerid, LOG22);
	SelectTextDraw(playerid, 0xFF8000FF);

	LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
	return 1;
	
	OcistiChat(playerid,16); TextDrawShowForPlayer(playerid, LoginTextdraw[0]);
	TextDrawShowForPlayer(playerid, LoginTextdraw[1]); TextDrawShowForPlayer(playerid, LoginTextdraw[2]);
	InterpolateCameraPos(playerid, 1164.730102, -1187.794677, 307.139495, 1565.853759, -1567.488525, 307.139495, 30000);
	InterpolateCameraLookAt(playerid, 1169.372436, -1187.942382, 305.288421, 1565.404052, -1562.916870, 305.165283, 30000);
	LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
	return 1;
}


eto vam sve ... pa vidite jel dobro... a mozda moguce da je zbog ovog intro-a jer sam izbriso...

forward Registracija2(playerid);
public Registracija2(playerid)
{
    KillTimer(IntroTimer2[playerid]);
    TextDrawShowForPlayer(playerid, LOG0);
   	TextDrawShowForPlayer(playerid, LOG1);
   	TextDrawShowForPlayer(playerid, LOG2);
   	TextDrawShowForPlayer(playerid, LOG3);
   	TextDrawShowForPlayer(playerid, LOG4);
	TextDrawShowForPlayer(playerid, LOG5);
	TextDrawShowForPlayer(playerid, LOG6);
	TextDrawShowForPlayer(playerid, LOG7);
	TextDrawShowForPlayer(playerid, LOG8);
	TextDrawShowForPlayer(playerid, LOG9);
	TextDrawShowForPlayer(playerid, LOG10);
	TextDrawShowForPlayer(playerid, LOG11);
	TextDrawShowForPlayer(playerid, LOG12);
	TextDrawShowForPlayer(playerid, LOG13);
	TextDrawShowForPlayer(playerid, LOG14);
	TextDrawShowForPlayer(playerid, LOG15);
	TextDrawShowForPlayer(playerid, LOG16);
	TextDrawShowForPlayer(playerid, LOG17);
	TextDrawShowForPlayer(playerid, LOG18);
	TextDrawShowForPlayer(playerid, LOG19);
	TextDrawShowForPlayer(playerid, LOG20);
	TextDrawShowForPlayer(playerid, LOG21);
	TextDrawShowForPlayer(playerid, LOG22);
	KillTimer(IntroTimer2[playerid]);
	SelectTextDraw(playerid, 0xFF8000FF);

	KillTimer(IntroTimer2[playerid]); TextDrawShowForPlayer(playerid,Intro[2]);
	TextDrawShowForPlayer(playerid,Intro[3]); TextDrawShowForPlayer(playerid,Intro[4]);
	IntroTimer3[playerid] = SetTimerEx("Registracija3",5000, false, "i", playerid);
	return 1;
}

forward LoginP(playerid);
public LoginP(playerid)
{
    TextDrawShowForPlayer(playerid, LOG0);
   	TextDrawShowForPlayer(playerid, LOG1);
   	TextDrawShowForPlayer(playerid, LOG2);
   	TextDrawShowForPlayer(playerid, LOG3);
   	TextDrawShowForPlayer(playerid, LOG4);
	TextDrawShowForPlayer(playerid, LOG5);
	TextDrawShowForPlayer(playerid, LOG6);
	TextDrawShowForPlayer(playerid, LOG7);
	TextDrawShowForPlayer(playerid, LOG8);
	TextDrawShowForPlayer(playerid, LOG9);
	TextDrawShowForPlayer(playerid, LOG10);
	TextDrawShowForPlayer(playerid, LOG11);
	TextDrawShowForPlayer(playerid, LOG12);
	TextDrawShowForPlayer(playerid, LOG13);
	TextDrawShowForPlayer(playerid, LOG14);
	TextDrawShowForPlayer(playerid, LOG15);
	TextDrawShowForPlayer(playerid, LOG16);
	TextDrawShowForPlayer(playerid, LOG17);
	TextDrawShowForPlayer(playerid, LOG18);
	TextDrawShowForPlayer(playerid, LOG19);
	TextDrawShowForPlayer(playerid, LOG20);
	TextDrawShowForPlayer(playerid, LOG21);
	TextDrawShowForPlayer(playerid, LOG22);
	SelectTextDraw(playerid, 0xFF8000FF);

	LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
	
	OcistiChat(playerid,16); TextDrawShowForPlayer(playerid, LoginTextdraw[0]);
	TextDrawShowForPlayer(playerid, LoginTextdraw[1]); TextDrawShowForPlayer(playerid, LoginTextdraw[2]);
	InterpolateCameraPos(playerid, 1164.730102, -1187.794677, 307.139495, 1565.853759, -1567.488525, 307.139495, 30000);
	InterpolateCameraLookAt(playerid, 1169.372436, -1187.942382, 305.288421, 1565.404052, -1562.916870, 305.165283, 30000);
	LogRegTimer[playerid] = SetTimerEx("LogReg",8000, true, "d", playerid);
	return 1;
}


Probaj...
69

ali sad kad se logujem ponovo mi izbaci dialog i ponovo se moram logirati i tako cijelo vrijemee mozete pomociii
Poslednja Izmena: Avgust 08, 2014, 19:12:18 POSLE PODNE od [SC] Collonelo ツ

Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 18:53:08 POSLE PODNE
ali sad kad se logujem ponovo mi izbaci dialog i ponovo se moram logirati i tako cijelo vrijemee mozete pomociii
Jesam ti resio problem jesam?
Vidi malo u proveri za pw itd.
69

sve mi je oke ali ja ni nestisnem na login on meni vec izbaci login dialog.... mozete pomoci molim vas

Citat: [SC] Collonelo ãƒ,, poslato Avgust 08, 2014, 21:19:39 POSLE PODNE
sve mi je oke ali ja ni nestisnem na login on meni vec izbaci login dialog.... mozete pomoci molim vas
Pa pogledaj OnDialogReasponse pokusaj malo sam sta skontat.
Nemam ja moci pa da vidim kod.
69

Oke, mozes mi samo reci jer ja nisam bas dobar u vezi td logina...

case DIALOG_LOGIN:
	    {
		    if(!response) return Kick(playerid);
		    if(response)
		    {
				if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
			    {
				    INI_ParseFile(Korisnici(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    new rand = random(sizeof(RandomSpawn2));
					SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
					SpawnPlayer(playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
					SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pBorbeniStil]);
					SetCameraBehindPlayer(playerid);
				    UlogovanProvera[playerid] = 1;
        			TextDrawHideForPlayer(playerid, LOG0);
				    TextDrawHideForPlayer(playerid, LOG1);
				    TextDrawHideForPlayer(playerid, LOG2);
				    TextDrawHideForPlayer(playerid, LOG3);
				    TextDrawHideForPlayer(playerid, LOG4);
					TextDrawHideForPlayer(playerid, LOG5);
					TextDrawHideForPlayer(playerid, LOG6);
					TextDrawHideForPlayer(playerid, LOG7);
					TextDrawHideForPlayer(playerid, LOG8);
					TextDrawHideForPlayer(playerid, LOG9);
					TextDrawHideForPlayer(playerid, LOG10);
					TextDrawHideForPlayer(playerid, LOG15);
					TextDrawHideForPlayer(playerid, LOG16);
					TextDrawHideForPlayer(playerid, LOG17);
					TextDrawHideForPlayer(playerid, LOG18);
					TextDrawHideForPlayer(playerid, LOG19);
					TextDrawHideForPlayer(playerid, LOG20);
					TextDrawHideForPlayer(playerid, LOG14);
					TextDrawHideForPlayer(playerid, LOG11);
					CancelSelectTextDraw(playerid);
				    OcistiChat(playerid, 10);
					new string[256],iskustvo;
					iskustvo = (PlayerInfo[playerid][pLevel] * 2) + 2;
					format(string,sizeof(string),""CRVENA"Dobrodosao "SIVA"%s "CRVENA"na Steal City RolePlay.",GetName(playerid));
					SCM(playerid,-1,string);
					format(string,sizeof(string),""CRVENA"[INFO]: "SIVA"Trenutni Level: %d | Respekti: %d/%d | Sati Igre: %d.",PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],iskustvo,PlayerInfo[playerid][pSatiIgre]);
					SCM(playerid,-1,string);
					if(PlayerInfo[playerid][pTutorial] == 0)
					{
					    SCM(playerid,-1,""CRVENA"(SC) "SIVA"Niste zavrsili registraciju ni sagledali tutorail pa ste vraceni na ponovnu registraciju!");
						ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""SIVA"Dali ste musko ili zensko?", ""CRVENA"- "SIVA"Musko\n"CRVENA"- "SIVA"Zensko", "Dalje", "Odustani");
					    SetPlayerCameraPos(playerid, 1657.39, -1856.75, 45.71); SetPlayerCameraLookAt(playerid, 1661.96, -1857.56, 43.85);
					    SetPlayerInterior(playerid, 0); TogglePlayerControllable(playerid, 0); SetPlayerPos(playerid, 1693.3690,-1867.5784,13.5412);
					    SetPlayerFacingAngle(playerid, 139.7829); SetPlayerVirtualWorld(playerid, 5446);
					}
			    }
			    else
			    {
				    new loginstring[512],loginname[64];
					GetPlayerName(playerid,loginname,sizeof(loginname));
					format(loginstring,sizeof(loginstring),""BELA"________________________________________________\n\n"SPLAVA"Dobrodosao na Steal City RolePlay\n\n"BELA"Vas Ime i Prezime: "SPLAVA"%s\n"BELA"Vas korisnicki racun je registrovan na serveru\nUnesite vas tacan password, imate "CRVENA"3 "BELA"pokusaja...\n\n"BELA"Ukoliko pogresite "CRVENA"3 "BELA"puta pass bicete banovani!\n"BELA"________________________________________________",loginname);
					ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Izlaz");
				    LoginPokusaji[playerid] += 1;
				    SCMF(playerid,-1,""CRVENA"(SC) "SIVA"Pogresna lozinka | Preostalo Pokusaja: %d/3!",LoginPokusaji[playerid]);
				    if(LoginPokusaji[playerid] == 3) { StatusKonekta(playerid, 3); }
				}
				return 1;
		    }
	    }
    }
    return 1;
}

Uzasan je kod ali to je nebitno nevidim ovde nista sto bi to radilo..
Sta tacno bude tebi samo otvara dialoge ali ti nedajes nikakav response?
69

Gledaj znaci, kad udjem u server izbaci mi login registracija izlaz taman idem kliknit login i on mi izbaci dialog login...znaci automatski mi izbaci dialog login a nisam nista ni kliknio...

Prvo skontaj sta pises

idem kliknit login i on mi izbaci dialog login...znaci automatski mi izbaci dialog login a nisam nista ni kliknio...


Ti kliknes ali nekliknes?
69

hahaha gledaj haha, udjem u server nekliknem nista i on mi izbaci dialog login sad skonto ?