[POMOC] Oko dialoga

Započeo X_G1
30. Dec. 2014. Zaključano
1,122
pregleda
37
postova
X_G1
4
Enforcer
30. Dec. 2014.
Skripta koju koristim:moja
Detaljan opis problema😄obio sam ovaj error


C:\Users\pc\Desktop\igrice i ostalo\sve za igre\samp srw\rp\gamemodes\PAC-RP.pwn(31811) : error 047: array sizes do not match, or destination array is too small
C:\Users\pc\Desktop\igrice i ostalo\sve za igre\samp srw\rp\gamemodes\PAC-RP.pwn(74167) : warning 225: unreachable code
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

1 Error.


Dio skripte:
    new stringa ;
    format(stringa, sizeof(stringa), "%s", inputtext);
    PlayerInfo = stringa;

Neke slike/video za lakse dobivanje pomoci(neobavezno):/
denis_lapi
5
Godfather
30. Dec. 2014.
Ajde objasni sta si ti ovde hteo da uradis. Najverovatnije je da upises inputtext u varijabli, ako se ne varam?
X_G1
4
Enforcer
30. Dec. 2014.
Radim reg u td.I sada hocu da mi input text upise u varijablu.(To sam ja nesto pokusavo .)
Rudimental
5
OG Legend
30. Dec. 2014.
String u varijablu upisujes na ovakav nacin.
strmid(PlayerInfo,inputtext, 0, strlen(inputtext), 255);
X_G1
4
Enforcer
1. Jan. 2015.
Imam novi problem kada odabire porijeklo.Samo hrvatska radi ostalo nece kad kliknem npr. BiH Samo me vrati na upisivannje lozinke.
Evo ondialogresponse.
		if(dialogid == DIALOG_PORIJEKLO) // Drzava
{
    if(response)
    {
    // SetTimerEx("PredTutorial", 100, 0, "i", playerid);
    if(listitem == 0) // HR
    {
        PlayerInfo = 1;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"HR");
        return 0;
    }
    else if(listitem == 1) // BIH
    {
        PlayerInfo = 2;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"BiH");
        return 0;
    }
    if(listitem == 2) // SRB
    {
        PlayerInfo = 3;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"SRB");
        return 0;
    }
    if(listitem == 3) // CG
    {
        PlayerInfo = 4;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"CG");
        return 0;
    }
    if(listitem == 4) // Slovenija
    {
        PlayerInfo = 5;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"SLO");
        return 0;
    }
    if(listitem == 5) // MAK
    {
        PlayerInfo = 6;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"MAK");
        return 0;
    }
  // SetTimerEx("PredTutorial", 100, 0, "i", playerid);
}
    }

A evo i ovo.
	ShowPlayerDialog(playerid, DIALOG_PORIJEKLO, DIALOG_STYLE_LIST, "Porijeklo","- Hrvatska\n- BiH\n- Srbija\n- Crna Gora\n- Slovenija\n- Makedonija", "U redu", "Odustani");
Rudimental
5
OG Legend
1. Jan. 2015.

if(dialogid == DIALOG_PORIJEKLO) // Drzava
{
    if(response)
    {
    // SetTimerEx("PredTutorial", 100, 0, "i", playerid);
    if(listitem == 0) // HR
    {
        PlayerInfo = 1;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"HR");
        return 0;
    }
    if(listitem == 1) // BIH
    {
        PlayerInfo = 2;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"BiH");
        return 0;
    }
    if(listitem == 2) // SRB
    {
        PlayerInfo = 3;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"SRB");
        return 0;
    }
    if(listitem == 3) // CG
    {
        PlayerInfo = 4;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"CG");
        return 0;
    }
    if(listitem == 4) // Slovenija
    {
        PlayerInfo = 5;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"SLO");
        return 0;
    }
    if(listitem == 5) // MAK
    {
        PlayerInfo = 6;
        RegistrationStep = 0;
        Registracija = 1;
    PlayerInfo = 1;
                    TextDrawSetString(TextDraw,"MAK");
        return 0;
    }
  // SetTimerEx("PredTutorial", 100, 0, "i", playerid);
}
    }
X_G1
4
Enforcer
1. Jan. 2015.
Idalje samo hrvatska radi.Kad odaberem BiH ili neku drugu vrati me na odabir spola.
X_G1
4
Enforcer
2. Jan. 2015.
Zna li neko do cega je??
Rudimental
5
OG Legend
2. Jan. 2015.
Aj ti proveri DIALOG_PORIJEKLO da se ne mesa mozda sa drugim dialogom kao sto kazes da dobijes dialog za pol ...
X_G1
4
Enforcer
3. Jan. 2015.
Sad je presto dialog za pol.Sad me prebacuje na dialog_lozinka.Ne mijesajju se.
Rudimental
5
OG Legend
3. Jan. 2015.
Daj da vidim kako si definisao te nazive za dialoge...
X_G1
4
Enforcer
3. Jan. 2015.
To su svi dialozi koje mi je pokazivao.
#define DIALOG_SPOL		          321
#define DIALOG_PORIJEKLO      	 	  323
#define DIALOG_LOZINKAA                    453
X_G1
4
Enforcer
4. Jan. 2015.
Zna li iko do čega je?
X_G1
4
Enforcer
5. Jan. 2015.
BUMP!!
Kroni
5
Underboss
5. Jan. 2015.
Dio skripte:
	 new stringa ;
format(stringa, sizeof(stringa), "%s", inputtext);
PlayerInfo = stringa;


Probaj ovako meni:
Tamo playerinfo pa sta kako ti vec ide pa pSifra, stavi tako
I kod LoadUser_data stavi ovako INI_String("Sifra",PlayerInfo, 12😎;, meni radi

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha