[AJUDA] Profissгo bugada.
#1

Sou novo aqui no forum e tambйm sou novato em pawn, eu to com um problema no meu GM que й o seguinte:
Tipo assim o emprego de motorista de busгo ta bugado, quamdo alguem vai na pref. pra pega o emprego de motorista de busгo ele vira entregador de materiais. Eu uso o GM Free Life Editado.
O que eu tenho sobre o emprego й o seguinte:


else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Motorista de onibus"; }

e sу, o que eu to achando estranho й q todos os outros empregos tem varias outras funзoes tipo: comandos spawn, etc.

Nгo sei se eu postei da maneira correta pois esse й o meu 1є post aki no forum se tem algo errado aki por favor me corrijam.
Reply
#2

voce postou bem sim, mas tipo, certeza que o id do emprego й esse?
Reply
#3

Bom, verifique se a profissгo 19 й a de motorista de onibus, se nгo for, mude-a para o id da do motorista *-*
Reply
#4

ja verifiquei, o id dos motoristas de фnibus й sim o 19, nгo sei se ajuda mais aki ta a lista dos empregos e os ID's


new jtext[20];
if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detetive"; }
else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Advogado"; }
else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Prostituta"; }
else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Vendedor de drogas"; }
else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Ladrгo de carros"; }
//else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Vendedor de sorvete"; }
else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mecвnico"; }
else if(PlayerInfo[targetid][pJob] == { jtext = "Seguranзa"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Vendedor de armas"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Vendedor de carros"; }
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
else if(PlayerInfo[targetid][pJob] == 13) { jtext = "Taxista"; }
else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Jornaleiro"; }
//else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Caminhoneiro"; }
else if(PlayerInfo[targetid][pJob] == 1 { jtext = "Entregador"; }
else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Motorista de onibus"; }
else if(PlayerInfo[targetid][pJob] == 20) { jtext = "Entregador de Pizza"; }
else if(PlayerInfo[targetid][pJob] == 22) { jtext = "Lixeiro"; }
else { jtext = "Desempregado"; }
Reply
#5

verifique no comando, no que esta defenido no comando, veja la!
Reply
#6

Desculpe DJ nгo intendi oq vc kis dizer...
Reply
#7

tipo, deves ter algo mal no comando de pegar o emprego, nao ai!
Reply
#8

como eu corrijo isso
Reply
#9

Esse bug й geralmente causado pelo Dialog que estб na Prefeitura. Entгo procura isto aqui no seu GM:

PHP код:
if(dialogid == 133
E substitue todas as linhas que sгo DESTA !! E SOMENTE DESTA !! dialog por isso:
PHP код:
if(dialogid == 133) {
        if(
response) {
            if(
listitem == 0)
            {
              
GettingJob[playerid] = 1;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid59);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 1)
            {
              
GettingJob[playerid] = 2;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid17);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 2)
            {
              
GettingJob[playerid] = 7;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid50);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 3)
            {
              
GettingJob[playerid] = 12;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid80);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 4)
            {
              
GettingJob[playerid] = 13;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid61);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 5)
            {
              
GettingJob[playerid] = 15;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid60);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 6)
            {
              
GettingJob[playerid] = 16;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid236);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 7)
            {
              
GettingJob[playerid] = 17;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid274);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 8)
            {
              
GettingJob[playerid] = 18;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid202);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 9)
            {
              
GettingJob[playerid] = 19;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid253);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 10)
            {
              
GettingJob[playerid] = 20;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid155);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 11)
            {
              
GettingJob[playerid] = 6;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid264);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 12)
            {
              
GettingJob[playerid] = 11;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid209);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 13)
            {
              
GettingJob[playerid] = 22;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid16);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
            }
            else if(
listitem == 14)
            {
              
GettingJob[playerid] = 21;
              
PlayerInfo[playerid][pJob] = GettingJob[playerid];
              
GettingJob[playerid] = 0;
              
SetPlayerSkin(playerid133);
              
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
              
TogglePlayerControllable(playerid1);
             }
        }
    } 
Reply
#10

Valeu Shadoww5 Consegui arrumar!!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)