[Pomoc]Pawno

Započeo Arnel_Bp
21. Jan. 2014. Zaključano
422
pregleda
7
postova
Arnel_Bp
5
Underboss
21. Jan. 2014.
Skripta koju koristim: moja
Detaljan opis problema: Vidite momci, ja znam na citav jedan GM Da napravim komandru/system neki sa dialogom neznam da dodajem drugi, treci i tako uvijek ima nekih erora, bili neko mogo od ovoga da mi napravi, da mi da primjer kako da ovo radim u buducnosti
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Dio skripte:

Evo prvi system:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        if(newkeys == KEY_SECONDARY_ATTACK)
        {
        if(IsPlayerInRangeOfPoint(playerid,3.0,2522.21362, -2121.03613, 132.90820)|| IsPlayerInRangeOfPoint(playerid,3.0,2521.94751, -2120.95508, 14.74297)||IsPlayerInRangeOfPoint(playerid,3.0,2522.04834, -2120.96680, 120.13690))
        ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Krov{FF0000}\nPrizemlje{7CFC00}\nKancelarija","Pokreni","Izadji");
    }
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid == 8235)
{
        if(response)
        {
                if(listitem == 0)
                {
        SetPlayerPos(playerid,2522.21362, -2121.03613, 132.90820);
                }
                if(listitem == 1)
                {
                SetPlayerPos(playerid,2521.94751, -2120.95508, 14.74297);
                }
        if(listitem == 2)
        {
        SetPlayerPos(playerid,2522.04834, -2120.96680, 120.13690);
        }
        }
        return 1;
}


I evo drugog
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-204.89340, -1165.09888, 134.17979)|| IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 94.61570)||IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 110.48210)||IsPlayerInRangeOfPoint(playerid,3.0,-204.89340, -1165.09888, 134.17979)||IsPlayerInRangeOfPoint(playerid,3.0,-203.29930, -1165.48511, 16.05040))
ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Office\nWeapon zone{7CFC00}\nDisco\nRoof\nGround floor","Pokreni","Izadji");
    }
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid == 8235)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,-204.89340, -1165.09888, 134.17979);
}
if(listitem == 1)
{
SetPlayerPos(playerid,-203.42690, -1165.61829, 94.61570);
}
if(listitem == 2)
{
SetPlayerPos(playerid,-203.42690, -1165.61829, 110.48210);
}
if(listitem == 3)
{
SetPlayerPos(playerid,-204.89340, -1165.09888, 134.17979);
}
if(listitem == 4)
{
SetPlayerPos(playerid,-203.29930, -1165.48511, 16.05040);
}
}
return 1;
}


kako sad to oboje dodati u jedan FS/GM? ako vam nije jasno opet cu pojasniti
Ralph.
3
Hustler
21. Jan. 2014.
Samo kopiraš i dodas u odreden public.
Arnel_Bp
5
Underboss
21. Jan. 2014.
Ja sam pokusavao nesto ovako ali ne radi
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        if(newkeys == KEY_SECONDARY_ATTACK)
        {
        if(IsPlayerInRangeOfPoint(playerid,3.0,2522.21362, -2121.03613, 132.90820)|| IsPlayerInRangeOfPoint(playerid,3.0,2521.94751, -2120.95508, 14.74297)||IsPlayerInRangeOfPoint(playerid,3.0,2522.04834, -2120.96680, 120.13690))
        ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Krov{FF0000}\nPrizemlje{7CFC00}\nKancelarija","Pokreni","Izadji");
    }

{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 110.48210)|| IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 83.69020)||IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 94.61570)||IsPlayerInRangeOfPoint(playerid,3.0,-204.89340, -1165.09888, 134.17979)||IsPlayerInRangeOfPoint(playerid,3.0,-203.29930, -1165.48511, 16.05040))
ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Office\nWeapon zone{7CFC00}\nDisco\nRoof\nGround floor","Pokreni","Izadji");
    }
    return 1;
}/code]

i dole

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid == 8235)
{
        if(response)
        {
                if(listitem == 0)
                {
        SetPlayerPos(playerid,2522.21362, -2121.03613, 132.90820);
                }
                if(listitem == 1)
                {
                SetPlayerPos(playerid,2521.94751, -2120.95508, 14.74297);
                }
        if(listitem == 2)
        {
        SetPlayerPos(playerid,2522.04834, -2120.96680, 120.13690);
        }
        }

if(dialogid == 8235)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,-203.42690, -1165.61829, 110.48210);
}
if(listitem == 1)
{
SetPlayerPos(playerid,-203.42690, -1165.61829, 83.69020);
}
if(listitem == 2)
{
SetPlayerPos(playerid,-203.42690, -1165.61829, 94.61570);
}
if(listitem == 3)
{
SetPlayerPos(playerid,-204.89340, -1165.09888, 134.17979);
}
if(listitem == 4)
{
SetPlayerPos(playerid,-203.29930, -1165.48511, 16.05040);
}
}
return 1;
}


ali ne radi, sta da radim, jel me sad shvacate?
Arnel_Bp
5
Underboss
21. Jan. 2014.
Arnel_Bp wrote on January 21, 2014, 1:11 pm:
Ja sam pokusavao nesto ovako ali ne radi
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        if(newkeys == KEY_SECONDARY_ATTACK)
        {
        if(IsPlayerInRangeOfPoint(playerid,3.0,2522.21362, -2121.03613, 132.90820)|| IsPlayerInRangeOfPoint(playerid,3.0,2521.94751, -2120.95508, 14.74297)||IsPlayerInRangeOfPoint(playerid,3.0,2522.04834, -2120.96680, 120.13690))
        ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Krov{FF0000}\nPrizemlje{7CFC00}\nKancelarija","Pokreni","Izadji");
    }

{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 110.48210)|| IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 83.69020)||IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 94.61570)||IsPlayerInRangeOfPoint(playerid,3.0,-204.89340, -1165.09888, 134.17979)||IsPlayerInRangeOfPoint(playerid,3.0,-203.29930, -1165.48511, 16.05040))
ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Office\nWeapon zone{7CFC00}\nDisco\nRoof\nGround floor","Pokreni","Izadji");
    }
    return 1;
}


i dole
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid == 8235)
{
        if(response)
        {
                if(listitem == 0)
                {
        SetPlayerPos(playerid,2522.21362, -2121.03613, 132.90820);
                }
                if(listitem == 1)
                {
                SetPlayerPos(playerid,2521.94751, -2120.95508, 14.74297);
                }
        if(listitem == 2)
        {
        SetPlayerPos(playerid,2522.04834, -2120.96680, 120.13690);
        }
        }

if(dialogid == 8235)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,-203.42690, -1165.61829, 110.48210);
}
if(listitem == 1)
{
SetPlayerPos(playerid,-203.42690, -1165.61829, 83.69020);
}
if(listitem == 2)
{
SetPlayerPos(playerid,-203.42690, -1165.61829, 94.61570);
}
if(listitem == 3)
{
SetPlayerPos(playerid,-204.89340, -1165.09888, 134.17979);
}
if(listitem == 4)
{
SetPlayerPos(playerid,-203.29930, -1165.48511, 16.05040);
}
}
return 1;
}


ali ne radi, sta da radim, jel me sad shvacate?
Arnel_Bp
5
Underboss
21. Jan. 2014.
bump?
Marjan_King
5
Kingpin
21. Jan. 2014.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
  if(IsPlayerInRangeOfPoint(playerid,3.0,2522.21362, -2121.03613, 132.90820)|| IsPlayerInRangeOfPoint(playerid,3.0,2521.94751, -2120.95508, 14.74297)||IsPlayerInRangeOfPoint(playerid,3.0,2522.04834, -2120.96680, 120.13690))
                ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Krov{FF0000}\nPrizemlje{7CFC00}\nKancelarija","Pokreni","Izadji");
        }
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 110.48210)|| IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 83.69020)||IsPlayerInRangeOfPoint(playerid,3.0,-203.42690, -1165.61829, 94.61570)||IsPlayerInRangeOfPoint(playerid,3.0,-204.89340, -1165.09888, 134.17979)||IsPlayerInRangeOfPoint(playerid,3.0,-203.29930, -1165.48511, 16.05040))
ShowPlayerDialog(playerid,8235,DIALOG_STYLE_LIST,"{FF0000}Elevator","Office\nWeapon zone{7CFC00}\nDisco\nRoof\nGround floor","Pokreni","Izadji");
        }
        return 1;
}
Arnel_Bp
5
Underboss
21. Jan. 2014.
Sta s' ovim ?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha