[POMOC]Spawn, Drzava

Započeo 032.Marcus, Januar 28, 2013, 20:26:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Scripta: Raven's RolePlay
Opis problema: Kada izaberem drzavu, kaze mi da nisam ovlascen da koristim ovu opciju. I takodje me ne spawnuje, u Default modu radi Spawn ,a kad editujem koordinate ne
Code:if(dialogid == 3) // Pol
{
    if(RegistrationStep[playerid] == 1)
    {
      if(response)
{
if(listitem == 0) // Musko
    {
        PlayerInfo[playerid][pSex] = 1;
        ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Koliko imate godina?", "7 \n8 \n9 \n10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n19 \n20", "U redu", "Odustani");
    SetPlayerSkin(playerid, 170);
    PlayerInfo[playerid][pChar] = 170;
    RegistrationStep[playerid] = 2;
    }
    if(listitem == 1) // Zensko
    {
        PlayerInfo[playerid][pSex] = 2;
        ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Koliko imate godina?", "7 \n8 \n9 \n10 \n11 \n12 \n13 \n14 \n15 \n16 \n17 \n18 \n19 \n20", "U redu", "Odustani");
    SetPlayerSkin(playerid, 41);
    PlayerInfo[playerid][pChar] = 41;
    RegistrationStep[playerid] = 2;
    }
    }
return 1;
}
}
if(dialogid == 4)
{
        if(RegistrationStep[playerid] == 2)
    {
if(response)
{
        if(listitem == 0)
    {
        PlayerInfo[playerid][pAge] = 7;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 1)
    {
        PlayerInfo[playerid][pAge] = 8;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 2)
    {
        PlayerInfo[playerid][pAge] = 9;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 3)
    {
        PlayerInfo[playerid][pAge] = 10;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 4)
    {
        PlayerInfo[playerid][pAge] = 11;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 5)
    {
        PlayerInfo[playerid][pAge] = 12;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 6)
    {
        PlayerInfo[playerid][pAge] = 13;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 7)
    {
        PlayerInfo[playerid][pAge] = 14;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 8)
    {
        PlayerInfo[playerid][pAge] = 15;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 9)
    {
        PlayerInfo[playerid][pAge] = 16;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 10)
    {
        PlayerInfo[playerid][pAge] = 17;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 11)
    {
        PlayerInfo[playerid][pAge] = 18;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 12)
    {
        PlayerInfo[playerid][pAge] = 19;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
    if(listitem == 13)
    {
        PlayerInfo[playerid][pAge] = 20;
        ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nOstatak sveta", "U redu", "Odustani");
        RegistrationStep[playerid] = 3;
    }
}
}
return 1;
}
if(dialogid == 5) // Drzava
{
    if(RegistrationStep[playerid] == 3)
    {
    if(response)
    {
    if(listitem == 0) // Srbija
    {
        PlayerInfo[playerid][pOrigin] = 1;
        TutTime[playerid] = 1;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
    }
    if(listitem == 1) // Crna Gora
    {
        PlayerInfo[playerid][pOrigin] = 2;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
    }
    if(listitem == 2) // Hrvatska
    {
        PlayerInfo[playerid][pOrigin] = 3;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
    }
    if(listitem == 3) // Makedonija
    {
        PlayerInfo[playerid][pOrigin] = 4;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
}
if(listitem == 4) // Bosna i Hercegovina
    {
        PlayerInfo[playerid][pOrigin] = 5;
        RegistrationStep[playerid] = 0;
        PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
}
if(listitem == 5) // Ostatak sveta
    {
        PlayerInfo[playerid][pOrigin] = 6;
        RegistrationStep[playerid] = 0;
  PlayerInfo[playerid][pTut] = 1;
PlayerInfo[playerid][pPos_x] = 1154.0857;
PlayerInfo[playerid][pPos_y] = -1770.9600;
PlayerInfo[playerid][pPos_z] = 16.5992;
MedicBill[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerControllable(playerid, 1);
SafeGivePlayerMoney(playerid, 500);
        return 0;
}
    }
}
return 1;
}


A ispod toga je, pa  mozda mi zato prikazuje ovo da nisam ovlascen.
if(dialogid == 13337)
{
    if(response)
    {
        if(PlayerInfo[playerid][pAdmin] < 6)
{
SendClientMessage(playerid, COLOR_GREY, "* You are not authorized to use this option");
return 1;
}
new final = strval(inputtext);
if(final != 0)
{
    if (final > 65535 || final < 100)
{
SendClientMessage(playerid, COLOR_GRAD2, "* Max ping may not go above 65535 or below 100");
ShowPlayerDialog(playerid, 13337,DIALOG_STYLE_INPUT,"Max Ping (100-65535)","Insert the max ping here, Must be numeric!","Input","Cancel");
return 1;
}
MaxPing = final;
format(string, sizeof(string),"* Max ping set to %d",final);
SendClientMessage(playerid, COLOR_GREY,string);
format(string,sizeof(string),"* The max ping has been set to %d by the Developer %s (%d)",final,sendername,playerid);
SendClientMessageToAll(COLOR_CREAM,string);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s has set the max ping to %d",d,m,y,h,mi,s,sendername, final);
AdminLog(string);
}
else return SendClientMessage(playerid, COLOR_GREY,"* Invalid ping, must be numeric and above 100!") && ShowPlayerDialog(playerid, 13337,DIALOG_STYLE_INPUT,"Max Ping (100-65535)","Insert the max ping here, Must be numeric!","Input","Cancel");
}
}

proveri da li ti se poklapa dialog sa nekim Admin dialogom

Ne poklapa se, pomerio sam dialog negde u sredinu i ne poklapa se.
A mozes mi reci ovo za spawn? Sad sam probao i sa SafeSetPlayerPos, ali kad to uradim, Spawnuje igraca ali ne vidi nista, sve mu sivo? Kako bih to mogao da resim


Pise "Undefined symbol SetPlayerVirtualWorld", a vec se koristio u prethodnom delu scripte?
EDIT: Resio sam, sad cu da testiram.
EDIT: Hvala, radi. Moze lock...
Poslednja Izmena: Januar 29, 2013, 15:05:57 POSLE PODNE od 032.Marcus