SA-MP Forums Archive
[Ajuda] Conflito em sistemas - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Conflito em sistemas (/showthread.php?tid=656832)



Conflito em sistemas - DeusGrego - 25.07.2018

Entгo o meu comando /profs estб dando conflito com o sistema de utilitarios. Esse problema й o seguinte, quando clico na parte Honestas, Transporte entre outros, fala que comprei um Intem no utilitarios, ai desaparece a aba do menu da profissхes.

Cуdigo profissхes:
PHP код:
if(strcmp("/profs",cmdtext,true,10) == 0)
    {
    if(
PlayerInfo[playerid][pTrocouProf] == 1)
    {
        
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк jб trocou de profissгo recentemente, devera cumprir um level de profissгo para poder mudar novamente!");
        
TogglePlayerControllable(playerid1);
        return 
1;
    }
    if(
PlayerInfo[playerid][pPunidop] > 0)
    {
        
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк estб punido e nao pode acessar este menu!");
        
TogglePlayerControllable(playerid1);
        return 
1;
    }
    else if(
PlayerToPoint(4.0playerid, -2033.2035,-117.5469,1035.1719) || PlayerToPoint(4.0playerid1490.2902,1305.6870,1093.2964))//cpprofs
    
{
        
ShowPlayerDialog(playerid,MenuAgenciaDIALOG_STYLE_LIST"{FFCC00}Profissуes""Classe» {3AB069}Honestas\nClasse» {84CFF5}Transportes\nClasse» {0E7DCC}Policia\nClasse» {23238C}Forзas Armadas""Selecionar""Fechar");
        return 
1;
    }
    else
    {
        
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк nгo estб em uma 'Agencia de Empregos'.");
        return 
1;
    }
}
if(
dialogid == MenuAgencia)
{
if(
response)
{
switch( 
listitem )
{
case 
0:
{
new 
String[2000];
strcat(String,"{FFFFFF}Profissгo\t{FF6600}Level\t{009900}Salario\n");
strcat(String,"{FFFFFF}Sorveteiro\t{FF6600}0\t{009900}$930\n");
strcat(String,"{FFFFFF}Caзador\t{FF6600}5\t{009900}$600\n");
strcat(String,"{FFFFFF}Jornalista\t{FF6600}10\t{009900}$950\n");
strcat(String,"{FFFFFF}Pescador\t{FF6600}15\t{009900}$600\n");
strcat(String,"{FFFFFF}Entregador de Pizza\t{FF6600}20\t{009900}$750\n");
strcat(String,"{FFFFFF}Paramйdico\t{FF6600}25\t{009900}$800\n");
strcat(String,"{FFFFFF}Frentista\t{FF6600}35\t{009900}$850\n");
strcat(String,"{FFFFFF}Mecвnico\t{FF6600}75\t{009900}$700\n");
strcat(String,"{FFFFFF}Meteologista\t{FF6600}80\t{009900}$1.200\n");
strcat(String,"{FFFFFF}Instrutor de Direзгo\t{FF6600}85\t{009900}$900\n");
strcat(String,"{FFFFFF}Bombeiro\t{FF6600}250\t{009900}900\n");
strcat(String,"{FFFFFF}Advogado\t{FF6600}600\t{009900}$1.500\n");
strcat(String,"{FFFFFF}Aposentado\t{FF6600}1000\t{009900}10.000\n");
strcat(String,"{FFFFFF}Voltar\n");
ShowPlayerDialog(playeridmeupauDIALOG_STYLE_TABLIST_HEADERS,"{FFCC00}Profissхes Honestas",String"Selecionar""Fechar");
}
case 
1:
{
new 
String[2000];
strcat(String,"{FFFFFF}Profissгo\t{FF6600}Level\t{009900}Salario\n");
strcat(String,"{FFFFFF}Petroleiro\t{FF6600}0\t{009900}$800\n");
strcat(String,"{FFFFFF}Motorista de Фnibus\t{FF6600}5\t{009900}$800\n");
strcat(String,"{FFFFFF}Maquinista\t{FF6600}12\t{009900}$950\n");
strcat(String,"{FFFFFF}Taxista\t{FF6600}18\t{009900}$850\n");
strcat(String,"{FFFFFF}Minerador\t{FF6600}20\t{009900}$900\n");
strcat(String,"{FFFFFF}Transportador\t{FF6600}25\t{009900}$950\n");
strcat(String,"{FFFFFF}Carregador de Concreto\t{FF6600}30\t{009900}$1000\n");
strcat(String,"{FFFFFF}Motorista de Carro Forte\t{FF6600}50\t{009900}$1850\n");
strcat(String,"{FFFFFF}Piloto\t{FF6600}80\t{009900}$880\n");
strcat(String,"{FFFFFF}Voltar\n");
ShowPlayerDialog(playeridmeupau4DIALOG_STYLE_TABLIST_HEADERS,"{FFCC00}Profissхes Transportes",String"Selecionar""Fechar");
}
case 
2:
{
new 
String[2000];
strcat(String,"{FFFFFF}Profissгo\t{FF6600}Level\t{009900}Salario\nPolicia Rodoviaria\t{FF6600}80\t{009900}$900\nPolicia Militar\t{FF6600}90\t{009900}$1,000\nPolicia Civil\t{FF6600}100\t{009900}$1,100\nPolicia Federal\t{FF6600}153\t{009900}$1,250\nDelegado\t{FF6600}176\t{009900}$1,500\nNarcoticos\t{FF6600}210\t{009900}$3,000\nBope\t{FF6600}287\t{009900}$2,000\nFBI\t{FF6600}320\t{009900}$1,800\nSwat\t{FF6600}340\t{009900}$2,500\nInterpol\t{FF6600}370\t{009900}$3,500\nVoltar");
ShowPlayerDialog(playeridmeupau5DIALOG_STYLE_TABLIST_HEADERS,"{FFCC00}Profissхes Policiais",String"Selecionar""Fechar");
}
case 
3:
{
ShowPlayerDialog(playeridmeupau7DIALOG_STYLE_TABLIST_HEADERS,"{FFCC00}Profissхes Governo","{FFFFFF}Profissгo\t{FF6600}Level\t{009900}Salario\nMarinha\t{FF6600}1100\t{009900}$6,000\nExercito\t{FF6600}1200\t{009900}$7,500\nAeronautica\t{FF6600}1300\t{009900}$8,000\nVoltar""Selecionar""Cancelar");
}
}
}

cуdigo do Utilitarios:
PHP код:
if(current == utilitarios)//menu loja de utilitarios
{
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanamesizeof(aname));
format(filesizeof(file), PASTA_CONTASaname);
new 
grana;
grana GetPlayerGrana(playerid);
switch(
row)
{
/*=============================== Celular =====================================*/
case 0:{//celular
if(dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 999) {
dini_IntSet(file"Celular"1);
dini_IntSet(file,"Celoff"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")- 1000);
SendClientMessage(playeridBranco"• Vocк comprou um celular /ajudacelular.");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 1000!.");
}else{
SendClientMessage(playerid0xFF4500AA"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 349){
dini_IntSet(file"Celular"1);
dini_IntSet(file,"Celoff"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
GivePlayerGrana(playerid, -350);
SendClientMessage(playeridBranco"• Vocк comprou um celular /ajudacelular.");
}else{
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
/*================================ Cartгo Telefonico ==========================*/
case 1:{
if(
dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 14) {
SendClientMessage(playeridBranco"• Vocк comprou um cartгo telefonico.");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 10!.");
dini_IntSet(file"CartaoTelefonico"dini_Int(file"CartaoTelefonico")+20);
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")- 15);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 9){//cartao telefonico
GivePlayerGrana(playerid, -10);
SendClientMessage(playeridBranco"• Vocк comprou um cartгo telefonico.");
dini_IntSet(file"CartaoTelefonico"dini_Int(file"CartaoTelefonico")+20);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}else{
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
/*========================= MP3 ==============================================*/
case 2:{
if(
dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 149) {
SendClientMessage(playeridBranco"• Vocк comprou um MP3 use /comandosmp3.");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 150!.");
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-150);
dini_IntSet(file"MP3"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 149){//mp3
GivePlayerGrana(playerid, -150);
SendClientMessage(playeridBranco"• Vocк comprou um MP3 use /comandosmp3.");
dini_IntSet(file"MP3"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
/*============================= Velocimetro ===================================*/
case 3:{//velocimetro
if(dini_Int(file,"Velocimetro") == 1){
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк jб tem um Velocimetro!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
return 
1;
}
if(
dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 999) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-1000);
dini_IntSet(file,"Velocimetro"1);
dini_IntSet(file,"VelocimetroOn"1);
SendClientMessage(playeridBranco"• Vocк comprou um Velocimetro use /comandosvelocimetro.");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 1000 !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}else{
SendClientMessage(playerid0xFF4500AA"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 999){
GivePlayerGrana(playerid, -1000);
SendClientMessage(playeridBranco"• Vocк comprou um Velocimetro use /comandosvelocimetro.");
dini_IntSet(file,"Velocimetro"1);
dini_IntSet(file,"VelocimetroOn"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
/*============================ GPS ============================================*/
case 4:{//Localizar
if(dini_Int(file,"Gps") == 1){
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк jб tem um GPS!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
return 
1;
}
if(
dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 14999) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-15000);
SendClientMessage(playeridBranco"• Vocк comprou um Gps use /comandosGps.");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 15000 !.");
dini_IntSet(file"Gps"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}else{
SendClientMessage(playerid0xFF4500AA"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 14999){
GivePlayerGrana(playerid, -15000);
SendClientMessage(playeridBranco"• Vocк comprou um Gps use /comandosGps.");
dini_IntSet(file"Gps"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
/*================================ Bloco de lembrete ==========================*/
case 5:{ //bloco
if(dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 149) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-150);
SendClientMessage(playeridBranco"• Vocк comprou um bloco de lembretes, use /lembrete [texto].");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 150 !.");
dini_IntSet(file"Bloco"1);
dini_Set(file"Lembrete""Nada");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}else{
SendClientMessage(playerid0xFF4500AA"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 149){
GivePlayerGrana(playerid, -150);
SendClientMessage(playeridBranco"• Vocк comprou um bloco de lembretes, use /lembrete [texto].");
dini_IntSet(file"Bloco"1);
dini_Set(file"Lembrete""Nada");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
/*====================== Capacete =============================================*/
case 6:{ //capacete
if(dini_Int(file,"Capacete") == 1){
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк jб tem um capacete!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
return 
1;
}
if(
dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 2999) {
SendClientMessage(playeridBranco,"• Vocк comprou um capacete use /ajudacapacete");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 3000 !.");
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-3000);
dini_IntSet(file,"Capacete"1);
dini_IntSet(file,"CapaceteOn"0);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}else{
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 2999){
GivePlayerGrana(playerid, -3000);
SendClientMessage(playeridBranco,"• Vocк comprou um capacete use /ajudacapacete");
dini_IntSet(file,"Capacete"1);
dini_IntSet(file,"CapaceteOn"0);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк nгo tem dinheiro suficiente!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
/*===================== Jetpack ==============================================*/
case 7:{//jetpack
if(dini_Int(file"jetpack") == 1){
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк jб tem um jetpack!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
return 
1;
}
if(
dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 999999) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-1000000);
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 1000000!.");
dini_IntSet(file,"jetpack"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}else{
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 999999){
GivePlayerGrana(playerid, -1000000);
SendClientMessage(playeridBranco,"• Vocк comprou um jetpack use /ajudajetpack");
dini_IntSet(file,"jetpack"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк nгo tem dinheiro suficiente!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
/*======================== Sem Parar ==========================================*/
case 8:{//sem parar
if(dini_Int(file"semparar") == 1){
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк jб tem um Sem Parar!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
return 
1;
}
if(
dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 29999) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-30000);
SendClientMessage(playeridBranco,"• Vocк comprou um Sem Parar use /ajudasemparar");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 30000!.");
dini_IntSet(file,"semparar"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}else{
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 29999){
GivePlayerGrana(playerid, -30000);
SendClientMessage(playeridBranco,"• Vocк comprou um Sem Parar use /ajudasemparar");
dini_IntSet(file,"semparar"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк nгo tem dinheiro suficiente!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
/*======================== Laser ==============================================*/
case 9:{
if(
dini_Int(file,"Laser") == 1){
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк jб tem um laser!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
return 
1;
}
if(
dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 999) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-1000);
SendClientMessage(playeridBranco,"• Vocк comprou um laser use /ajudalaser");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 1000!.");
dini_IntSet(file,"Laser"1);
dini_IntSet(file,"LaserOn"0);
dini_IntSet(file,"LaserCor"18643);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}else{
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 14999){
GivePlayerGrana(playerid, -15000);
SendClientMessage(playeridBranco,"• Vocк comprou um laser use /ajudalaser");
dini_IntSet(file,"Laser"1);
dini_IntSet(file,"LaserOn"0);
dini_IntSet(file,"LaserCor"18643);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк nгo tem dinheiro suficiente!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
case 
10:{
{
ShowMenuForPlayer(utilitarios1playerid);
TogglePlayerControllable(playerid,0);
}
}
case 
11:{
{
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
}
if(
current == utilitarios1)//menu loja de utilitarios 2
{
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanamesizeof(aname));
format(filesizeof(file), PASTA_CONTASaname);
new 
grana;
new 
msg[126];
grana GetPlayerGrana(playerid);
/*========================== Kit Neon Car =====================================*/
switch(row)
{
case 
0:{
if(
dini_Int(file,"kitneon") == 1){
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк jб tem um Kit Neon Car !");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitarios1playerid);
return 
1;
}
if(
dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 69999) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-70000);
SendClientMessage(playeridBranco,"• Vocк comprou um Kit Neon Car !");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 70000!.");
dini_IntSet(file,"kitneon"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitarios1playerid);
}else{
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitarios1playerid);
}
}else{
if(
dini_Int(file,"kitneon") == 0){
if(
grana 69999){
GivePlayerGrana(playerid, -70000);
SendClientMessage(playeridBranco,"• Vocк comprou um Kit Neon Car !");
dini_IntSet(file,"kitneon"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitarios1playerid);
} else {
SendClientMessage(playerid0xFF4500AA,"| ERRO | Vocк nгo tem dinheiro suficiente!");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitarios1playerid);
}
}
}
return 
1;
}
case 
1:{//Porta armas
if(dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 2999) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-3000);
SendClientMessage(playeridBranco"• Vocк comprou um Porta armas use /ajudaportaarmas.");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 3000!.");
}else{
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 2999){
GivePlayerGrana(playerid, -3000);
SendClientMessage(playeridBranco"• Vocк comprou um Porta armas use /ajudaportaarmas.");
dini_IntSet(file"portaarmas"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
case 
2:{//creditos cel 25
if(dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 24) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-25);
SendClientMessage(playeridBranco"• Vocк Recarrego 25$ de credito em seu celular Obrigado ! ");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 25!.");
GameTextForPlayer(playerid,"~y~SMS : ~b~Recebido" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"Credito"dini_Int(file"Credito")+25);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
format(msg,sizeof(msg),"| CELULAR | SMS : Seu novo saldo й %d $ ",dini_Int(file"Credito"));
SendClientMessage(playerid,Amarelo,msg);
}else{
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 24){
GivePlayerGrana(playerid, -25);
SendClientMessage(playeridBranco"• Vocк Recarrego 25$ de credito em seu celular Obrigado ! ");
GameTextForPlayer(playerid,"~y~SMS : ~b~Recebido" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"Credito"dini_Int(file"Credito")+25);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
format(msg,sizeof(msg),"| CELULAR | SMS : Seu novo saldo й %d $ ",dini_Int(file"Credito"));
SendClientMessage(playerid,Amarelo,msg);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
case 
3:{//creditos cel 50
if(dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 49) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-50);
SendClientMessage(playeridBranco"• Vocк Recarrego 50$ de credito em seu celular Obrigado ! ");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 50!.");
GameTextForPlayer(playerid,"~y~SMS : ~b~Recebido" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"Credito"dini_Int(file"Credito")+50);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
format(msg,sizeof(msg),"| CELULAR | SMS : Seu novo saldo й %d $ ",dini_Int(file"Credito"));
SendClientMessage(playerid,Amarelo,msg);
}else{
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 49){
GivePlayerGrana(playerid, -50);
SendClientMessage(playeridBranco"• Vocк Recarrego 50$ de credito em seu celular Obrigado ! ");
GameTextForPlayer(playerid,"~y~SMS : ~b~Recebido" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"Credito"dini_Int(file"Credito")+50);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
format(msg,sizeof(msg),"| CELULAR | SMS : Seu novo saldo й %d $ ",dini_Int(file"Credito"));
SendClientMessage(playerid,Amarelo,msg);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
case 
4:{//creditos cel 100
if(dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 99) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-100);
SendClientMessage(playeridBranco"• Vocк Recarrego 100$ de credito em seu celular Obrigado ! ");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 100!.");
GameTextForPlayer(playerid,"~y~SMS : ~b~Recebido" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"Credito"dini_Int(file"Credito")+100);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
format(msg,sizeof(msg),"| CELULAR | SMS : Seu novo saldo й %d $ ",dini_Int(file"Credito"));
SendClientMessage(playerid,Amarelo,msg);
} else {
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 99){
GivePlayerGrana(playerid, -100);
SendClientMessage(playeridBranco"• Vocк Recarrego 100$ de credito em seu celular Obrigado ! ");
GameTextForPlayer(playerid,"~y~SMS : ~b~Recebido" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"Credito"dini_Int(file"Credito")+100);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
format(msg,sizeof(msg),"| CELULAR | SMS : Seu novo saldo й %d $ ",dini_Int(file"Credito"));
SendClientMessage(playerid,Amarelo,msg);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
case 
5:{//creditost cel 200
if(dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 199) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-200);
SendClientMessage(playeridBranco"• Vocк Recarrego 200$ de credito em seu celular Obrigado ! ");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 200!.");
GameTextForPlayer(playerid,"~y~SMS : ~b~Recebido" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"Credito"dini_Int(file"Credito")+200);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
format(msg,sizeof(msg),"| CELULAR | SMS : Seu novo saldo й %d $ ",dini_Int(file"Credito"));
SendClientMessage(playerid,Amarelo,msg);
} else {
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 199){
GivePlayerGrana(playerid, -200);
SendClientMessage(playeridBranco"• Vocк Recarrego 200$ de credito em seu celular Obrigado ! ");
GameTextForPlayer(playerid,"~y~SMS : ~b~Recebido" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"Credito"dini_Int(file"Credito")+200);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
format(msg,sizeof(msg),"| CELULAR | SMS : Seu novo saldo й %d $ ",dini_Int(file"Credito"));
SendClientMessage(playerid,Amarelo,msg);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
case 
6:{//bateria cel
if(dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 39) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-40);
SendClientMessage(playeridBranco"• Bateria de celular comprada  com sucesso 100 $ Obrigado ! ");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 50!.");
GameTextForPlayer(playerid,"~y~Bateria : ~b~100%" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"bateria"35);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 39){
GivePlayerGrana(playerid, -40);
SendClientMessage(playeridBranco"• Bateria de celular comprada  com sucesso 100 $ Obrigado ! ");
GameTextForPlayer(playerid,"~y~Bateria : ~b~100%" 30003);
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file"bateria"35);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
case 
7:{//balao
if(dini_Int(file ,"CartaoOn") == 1){
if(
dini_Int(file"SaldoBancario" ) > 7999999) {
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")-8000000);
SendClientMessage(playeridAmareloClaro"• Vocк compro um Balгo de ar /Ajudabalao !");
SendClientMessage(playeridVerdeClaro"• Seu cartгo de debito estб ativado , portanto, foram descontados de seu banco $ 8000000 !.");
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file,"baarq"1);
dini_IntSet(file,"balaoon"0);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA,"| ERRO | Saldo bancбrio insuficiente desative seu cartгo de dйbito /Cartaooff !.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}else{
if(
dini_Int(file ,"CartaoOn") == 0){
if(
grana 7999999){
GivePlayerGrana(playerid, -8000000);
SendClientMessage(playeridAmareloClaro"• Vocк compro um Balгo de ar /Ajudabalao !");
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
dini_IntSet(file,"baarq"1);
dini_IntSet(file,"balaoon"0);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playeridVermelho"• Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
}
return 
1;
}
case 
8:{// Voltar
{
if(
grana 4999){
GivePlayerGrana(playerid, -5000);
SendClientMessage(playeridBranco"• Vocк compro um cartгo de dйbito /ajudacartгo ! ");
dini_IntSet(file"Cartaodebito"1);
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
} else {
SendClientMessage(playerid0xFF4500AA"| ERRO | Vocк nгo tem dinheiro suficiente.");
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitariosplayerid);
}
}
return 
1;
}
case 
9:{// Voltar
{
ShowMenuForPlayer(utilitariosplayerid);
TogglePlayerControllable(playerid,0);
}
}
case 
10:{// Cancelar
{
TogglePlayerControllable(playerid1);
HideMenuForPlayer(utilitarios1playerid);
}
}
}

Alguйm me ajuda? por favor Rep++


Re: Conflito em sistemas - Cauezin - 25.07.2018

Vocк deve ter colocado o mesmo numero na hora de definir os nomes dos dialogs

PHP код:
Ex:

#define DIALOGA 100
#define DIALOGB 100