[Ajuda] Problema Caixinha Me Ajuda
#1

[pawn]C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(54670) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(54670) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(54670) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(54670) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(54670) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(54670) : error: 017: undefined symbol "string"
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(54670) : error: 017: undefined symbol "string"
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(54670) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(54670) : error fatal: 107: too many error messages on one line [/pawn


Me Ajuda Com a Caixinha

pawn Код:
//======= Caixinhas - Inicio ========//
        if(PlayerToPoint(2.0,playerid,1508.5634,-1671.5271,14.0469))
        {
            new DinheiroCaixinha = 1000 + random(10350);
            new RespeitoCaixinha = 1    +    random(3);
            //new string[126];
            if(PlayerInfo[playerid][pCaixinha] == char)
            {
                if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return true;}
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк pegou uma caixinha hб pouco tempo, volte no prуximo Payday!");
                return true;
            }
            else
            {
                if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return true;}
                PlayerInfo[playerid][pCaixinha] = char;
                format(string, sizeof(string), "[Caixinha De Presente]%s Pegou Uma Caixinha Com R$[%d] e Respeito [%d],Para Obter, Vб Ate a Praзa Da Prefeitura.",PlayerName(playerid), DinheiroCaixinha, RespeitoCaixinha);
                SendClientMessageToAll(COLOR_PURPLE,string);
                GivePlayerMoneyEx(playerid, DinheiroCaixinha);
                PlayerInfo[playerid][pExp] += RespeitoCaixinha;
                format(string, sizeof(string), "Vocк Pegou Uma Caixinha a Pouco Tempo,Volte Novamente Apуs o Proximo Salario!",
                DinheiroCaixinha, RespeitoCaixinha);
                SendClientMessage(playerid, COLOR_RED, string);
            }
        }
Reply
#2

Ativa new string e veja o que acontece!
Reply
#3

pawn Код:
C:\Users\Allisson\Desktop\GM BSC\pawno\include\Dini.inc(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 035: argument type mismatch (argument 1)
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 035: argument type mismatch (argument 1)
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 035: argument type mismatch (argument 2)
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 017: undefined symbol "GivePlayerMoneyEx"
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 035: argument type mismatch (argument 1)
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 035: argument type mismatch (argument 1)
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : error: 035: argument type mismatch (argument 3)
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 209: function "OnPlayerKeyStateChange" should return a value
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 219: local variable "string" shadows a variable at a preceding level
C:\Users\Allisson\Desktop\GM BSC\gamemodes\BSG2.pwn(1346) : warning: 203: symbol is never used: "string"
Reply
#4

tenta ae:
pawn Код:
if(PlayerToPoint(2.0,playerid,1508.5634,-1671.5271,14.0469))
        {
            new DinheiroCaixinha = 1000 + random(10350);
            new RespeitoCaixinha = 1 + random(3);
            //new string[126];
            if(PlayerInfo[playerid][pCaixinha] == char)
            {
                if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return true;}
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк pegou uma caixinha hб pouco tempo, volte no prуximo Payday!");
                return true;
            }
            else
            {
                if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return true;}
                PlayerInfo[playerid][pCaixinha] = char;
                format(string, sizeof(string), "[Caixinha De Presente]%s Pegou Uma Caixinha Com R$[%d] e Respeito [%d],Para Obter, Vб Ate a Praзa Da Prefeitura.",PlayerName(playerid), DinheiroCaixinha, RespeitoCaixinha);
                SendClientMessageToAll(COLOR_LIGHTRED,string);
                GivePlayerMoneyEx(playerid, DinheiroCaixinha);
                PlayerInfo[playerid][pExp] += RespeitoCaixinha;
                format(string, sizeof(string), "Na caixinha continha R$%d e %d de respeito, volte no prуximo Payday!",
                DinheiroCaixinha, RespeitoCaixinha);
                SendClientMessage(playerid, COLOR_RED, string);
            }
        }
Reply
#5

Crie outra celula !
Reply
#6

PHP код:
//======= Caixinhas - Inicio ========//
        
if(PlayerToPoint(2.0,playerid,1508.5634,-1671.5271,14.0469))
        {
            new 
DinheiroCaixinha 1000 random(10350);
            new 
RespeitoCaixinha 1    +    random(3);
            
stringn[126];
            if(
PlayerInfo[playerid][pCaixinha] == char)
            {
                if(
caixinha != char){SendClientMessage(playeridCOLOR_GRAD1"Presentes bloqueados no momento.");return true;}
                
SendClientMessage(playeridCOLOR_GRAD1"Vocк pegou uma caixinha hб pouco tempo, volte no prуximo Payday!");
                return 
true;
            }
            else
            {
                if(
caixinha != char){SendClientMessage(playeridCOLOR_GRAD1"Presentes bloqueados no momento.");return true;}
                
PlayerInfo[playerid][pCaixinha] = char;
                
format(stringnsizeof(stringn), "[Caixinha De Presente]%s Pegou Uma Caixinha Com R$[%d] e Respeito [%d],Para Obter, Vб Ate a Praзa Da Prefeitura.",PlayerName(playerid), DinheiroCaixinhaRespeitoCaixinha);
                
SendClientMessageToAll(COLOR_PURPLE,stringn);
                
GivePlayerMoneyEx(playeridDinheiroCaixinha);
                
PlayerInfo[playerid][pExp] += RespeitoCaixinha;
                
format(stringnsizeof(stringn), "Vocк Pegou Uma Caixinha a Pouco Tempo,Volte Novamente Apуs o Proximo Salario!",
                
DinheiroCaixinhaRespeitoCaixinha);
                
SendClientMessage(playeridCOLOR_REDstringn);
            }
        } 
Reply
#7

pawn Код:
//======= Caixinhas - Inicio ========//
        if(PlayerToPoint(2.0,playerid,1508.5634,-1671.5271,14.0469))
        {
            new DinheiroCaixinha = 1000 + random(10350);
            new RespeitoCaixinha = 1    +    random(3);
            new diimenor[126];
            if(PlayerInfo[playerid][pCaixinha] == char)
            {
                if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return true;}
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк pegou uma caixinha hб pouco tempo, volte no prуximo Payday!");
                return true;
            }
            else
            {
                if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return true;}
                PlayerInfo[playerid][pCaixinha] = char;
                format(diimenor, sizeof(diimenor), "[Caixinha De Presente]%s Pegou Uma Caixinha Com R$[%d] e Respeito [%d],Para Obter, Vб Ate a Praзa Da Prefeitura.",PlayerName(playerid), DinheiroCaixinha, RespeitoCaixinha);
                SendClientMessageToAll(COLOR_PURPLE,diimenor);
                GivePlayerMoneyEx(playerid, DinheiroCaixinha);
                PlayerInfo[playerid][pExp] += RespeitoCaixinha;
                format(diimenor, sizeof(diimenor), "Vocк Pegou Uma Caixinha a Pouco Tempo,Volte Novamente Apуs o Proximo Salario!",
                DinheiroCaixinha, RespeitoCaixinha);
                SendClientMessage(playerid, COLOR_RED, diimenor);
            }
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)