[Pomoc] molim hitno pomoc

Započeo [GU:RP] Ivica, April 06, 2013, 16:18:46 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:cyber
Detaljan opis problema:kad sam usao na server da se regam a igrac drugi bio na server vec logiran u autu i njemu je dosao login dialogg i tako se sve sad pomijesalo nezz do cega je ovdje je nedgej problem u ovom kodu recimo ja se udem logirat a igrac vec neki gleda intro i onda se i meni pokaze intro da moram gledat ako shvacate molim vas da pomognete. Hvala
Dio skripte:
for(new i = 0; i < MAX_PLAYERS; i++)
{
//---------[ STATS ]----------------------//
    SetTimerEx("PostaviKameru",1000,false,"d",i);
new name[MAX_PLAYER_NAME],loginstring[612];
    GetPlayerName(i,name,sizeof(i));
    if(fexist(Path(i)))
    {
        gPlayerAccount[i] = 1;
        INI_ParseFile(Path(i),"loadaccount_%s", .bExtra = true, .extra = i);
        format(loginstring,sizeof(loginstring),"{00C0FF}_____________________________________\n\n{FFFFFF}DobrodoÅ¡ao na G-Unit RolePlay/Dm Server! {00C0FF}\n\n%s\n{FFFFFF}Vas je korisnicki racun pronadjen!\n\nMolimo upisi lozinku da udjes na server:\n{00C0FF}_______________________________________",name);
ShowPlayerDialog(i,dlogin,DIALOG_STYLE_PASSWORD,"Prijava",loginstring,"Logiraj","Izlaz");
if(PlayerInfo[i][pTut] == 0)
{
SetTimerEx("NijePogledaoTutorial", 1000,false,"d",i);
}
  }
    else
    {
        ShowIntro(playerid);
        TextDrawShowForPlayer(playerid,crni);
        SetPlayerColor(playerid,GRAD2);
        return 1;
    }
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Ovako probaj,pazi ti poslije ovoga ShowIntro moraš imati neki dialog za registraciju ... :

public OnPlayerConnect(playerid)
{
    SetTimerEx("PostaviKameru",50, false, "i", playerid);
   
if(fexist(UserPath(playerid)))
{
    new name[MAX_PLAYER_NAME],loginstring[612];
    GetPlayerName(playerid,name,sizeof(playerid));
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
        format(loginstring,sizeof(loginstring),"{00C0FF}_____________________________________\n\n{FFFFFF}DobrodoÅ¡ao na G-Unit RolePlay/Dm Server! {00C0FF}\n\n%s\n{FFFFFF}Vas je korisnicki racun pronadjen!\n\nMolimo upisi lozinku da udjes na server:\n{00C0FF}_______________________________________",name);
ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_PASSWORD,"Prijava",loginstring,"Logiraj","Izlaz");
if(PlayerInfo[playerid][pTut] == 0)
{
SetTimerEx("NijePogledaoTutorial", 1000,false,"d",playerid);
}
}
else
{
    ShowIntro(playerid);
        TextDrawShowForPlayer(playerid,crni);
        SetPlayerColor(playerid,GRAD2);
}

return 1;
}
BIG RESPEKT: Blaeks,  [CRP] Joey_, David (Sabljak) A.k.A SABO(T), joXy_, Dimi, Sexserghy ♥, TerminuS, H1TM4N

imam sve u showintro za reg samo me to tu zezalo valjda ce radit sada ja kad sam sam tj kad se sam regam radi sve siper cim vise igraca sve se zezne

edit:
sadd sam testao i mislio sam da ce biti sve u redu kad se ovo desilo dakle dva igraca gledaju intro i sad je problem jedan prode a drugi stoji sam na intru zapne i ne ide dalje. Hvala
Poslednja Izmena: April 06, 2013, 18:05:31 POSLE PODNE od ivica158

Citat: ivica158 poslato April 06, 2013, 17:49:13 POSLE PODNE
imam sve u showintro za reg samo me to tu zezalo valjda ce radit sada ja kad sam sam tj kad se sam regam radi sve siper cim vise igraca sve se zezne

edit:
sadd sam testao i mislio sam da ce biti sve u redu kad se ovo desilo dakle dva igraca gledaju intro i sad je problem jedan prode a drugi stoji sam na intru zapne i ne ide dalje. Hvala

Daj taj dio ShowIntro..
BIG RESPEKT: Blaeks,  [CRP] Joey_, David (Sabljak) A.k.A SABO(T), joXy_, Dimi, Sexserghy ♥, TerminuS, H1TM4N

evo ali flash ja opet mislim da je problem tam na connectu da se postavi da se prikazuje zasebno za igraca ako me shvacas sada kad sam ja izasao idrugi igrac usao onda radi a cim su dva igraca jednom radi a drugom ne, ako shvacas. Hvala


stock ShowIntro(playerid)
{
if(IsPlayerConnected(playerid))
{
SetPVarInt(playerid, "introstate", 1); //INTRO 1.
for(new t=0;t<9;t++) { TextDrawShowForPlayer(playerid, IntroTD[t]); }
PlayerPlaySound(playerid, 1039, 0.0, 0.0, 0.0); SetPlayerPos(playerid, 1265.0597,-1529.2328,-62.4249); SetPlayerCameraPos(playerid, 1265.0597,-1529.2328,62.4249); SetPlayerCameraLookAt(playerid, 1314.5819,-1495.5293,82.3117);
}
return 1;
}
/*------------------------------------------------------------------------------*/
public IntroCheck(playerid) {
for(new i=0;i<MAX_PLAYERS;i++) {
if(IsPlayerConnected(i) && GetPVarInt(i, "introstate") != 0) {
    if(GetPVarInt(i, "introstate") == 1) {
        for(new t=0;t<9;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawHideForPlayer(i, IntroTD[t]); }
          for(new t=0;t<7;t++) { TextDrawShowForPlayer(i, IntroTDDva[t]); }
          SetPVarInt(i, "introstate", 2); //INTRO 2.
          PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0); SetPlayerPos(i, 1265.0597,-1529.2328,-62.4249);
SetPlayerCameraPos(i, 1265.0597,-1529.2328,62.4249); SetPlayerCameraLookAt(i,1314.5819,-1495.5293,82.3117);
}else if(GetPVarInt(i, "introstate") == 2) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawHideForPlayer(i, IntroTDDva[t]); }
          for(new t=0;t<7;t++) { TextDrawShowForPlayer(i, IntroTDTri[t]); }
          SetPVarInt(i, "introstate", 3);//INTRO 3.
          PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0); SetPlayerPos(i,  1265.0597,-1529.2328,-62.4249);
SetPlayerCameraPos(i,1265.0597,-1529.2328,62.4249); SetPlayerCameraLookAt(i,1314.5819,-1495.5293,82.3117);
}else if(GetPVarInt(i, "introstate") == 3) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawHideForPlayer(i, IntroTDTri[t]); }
    //----------------intro 4------------------------------------------//
    for(new t=0;t<7;t++) { TextDrawShowForPlayer(i, IntroTDCetiri[t]); }
          SetPVarInt(i, "introstate", 4);//INTRO 4.
          PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0); //SetPlayerPos(i,  1265.0597,-1529.2328,-62.4249);
SetPlayerCameraPos(i,-2572.4331,1405.6974,20.2946);SetPlayerCameraLookAt(i,-2603.3301,1516.0060,39.6734);
}else if(GetPVarInt(i, "introstate") == 4) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawHideForPlayer(i, IntroTDCetiri[t]); }
    //intro 5.
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawShowForPlayer(i, IntroTDPet[t]); }
          SetPVarInt(i, "introstate", 5);//INTRO 5.
          PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0); SetPlayerPos(i,  2076.1084,1309.1228,19.7385);
SetPlayerCameraPos(i,2092.1477,1306.3602,33.3597); SetPlayerCameraLookAt(i,2138.7808,1290.1499,43.7068);
}else if(GetPVarInt(i, "introstate") == 5) {
for(new t=0;t<7;t++) { TextDrawHideForPlayer(i,TDRMsgs); TextDrawHideForPlayer(i, IntroTDPet[t]); }
//intro 6.
for(new t=0;t<7;t++) { TextDrawShowForAll(Text:TDRMsgs); TextDrawHideForPlayer(i,crni); TextDrawShowForPlayer(i, IntroTDSest[t]); }
          SetPVarInt(i, "introstate", 6);//INTRO 6.
          PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0);
SetTimerEx("PostaviKameru",1000,false,"d",i);
}else if(GetPVarInt(i, "introstate") == 6) {
    for(new t=0;t<7;t++) { TextDrawHideForPlayer(i, IntroTDSest[t]); }
    new name[MAX_PLAYER_NAME],regstring[128];
          GetPlayerName(i,name,sizeof(name));
    KillTimer(IntroReg[playerid]);
    format(regstring,sizeof(regstring),"{FFFFFF}DobrodoÅ¡li na G-Unit RolePlay !\n{00C0FF}%s\n{FFFFFF}Vas racun nije pronadjen,molimo da upisete lozinku:",name);
ShowPlayerDialog(i,dregister,DIALOG_STYLE_PASSWORD,"Registracija",regstring,"Registriraj","Izlaz"); } } } //}
return 1;
}

evo dakle zeza ja nemam acc na srv regan ne postoji u fileu i sad ja udem i oke dode intro ali mi i odma pokaze login dialog zasto?. Hvala evo slika


http://www.zaslike.com/upload.php

Postoji mogucnost da ti taimer nije uredu neki  neda mi se sad gledati moram  u grad