[Ajuda] Erros Toscos '-'
#1

@Bom resolvi parte dos erros, foi por besteira minha, a gnt empolga nos cуdigos acaba saindo criando linhas gigantes e nгo aceita que o erro estava ali uahsuahs, poisй agora estou com um erro aqui:

pawn Код:
if ( StrToInt(inputtext) >= 0 || StrToInt(inputtext) <= 299)
esses sгo os erros:

pawn Код:
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : warning 215: expression has no effect
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Vlw ViniKuliveguisky por me lembrar da quebra de linhas '-'
Reply
#2

Quote:
Originally Posted by focaximubh
Посмотреть сообщение
Olб, estou passando aqui para pedir uma ajudinha kkkk, estou com os seguintes erros em um projeto:


pawn Код:
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(13618) : error 075: input line too long (after substitutions)
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : warning 215: expression has no effect
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(21601) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

bom.... DEFINITIVAMENTE nгo sei o que й... Aqui as linhas:

pawn Код:
13618 = format ( file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(i));

Erro: C:\Documents and Settings\Lucas-PC\Desktop\[BR]Survive\gamemodes\CVGM.pwn(13618) : error 075: input line too long (after substitutions)

21601 =  if ( StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272 || StrToInt(inputtext) == 273 || StrToInt(inputtext) == 270 || StrToInt(inputtext) == 269 || StrToInt(inputtext) == 274 || StrToInt(inputtext) == 289)
{

Erro: os outros 4'-'
Agradeзo desde jб.
Primeiro quebre a linha 21601:
pawn Код:
if ( StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272 || StrToInt(inputtext) == 273 || StrToInt(inputtext) == 270 || StrToInt(inputtext) == 269 || StrToInt(inputtext) == 274 || StrToInt(inputtext) == 289)
{
exemplo:
pawn Код:
if(StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272 ||
StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272)
e o outro erro estб errado esse cуdigo eu acho.

pawn Код:
format ( file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(i));
passe essa a callback desse Pasta contas.(se й que existe)

se nгo existe coloca assim entгo:
pawn Код:
format ( file, sizeof(file), "Contas/%s.ini", GetPlayerNameEx(i));
Obs: Contas seria o nome da pasta! se o nome for outro altere-a!
Reply
#3

@Desculpa double post! mais como ele nгo postou sу editou tive que fazer isso!

@Topic: nгo estaria errado essa comparaзгo tambйm?
pawn Код:
if ( StrToInt(inputtext) >= 0 && StrToInt(inputtext) <= 299)
Em vez de
pawn Код:
if ( StrToInt(inputtext) >= 0 || StrToInt(inputtext) <= 299)
Sobre os erros deve ser algum fim de instruзгo na parte de cima do cуdigo! mostre as linhas acima
Reply
#4

pawn Код:
if ( dialogid == skins)
    {
        if ( response == 1)
        {
            if ( !VBIsNumeric(inputtext))
            {
                SendClientMessage ( playerid , Vermelho, "Valor invбlido, tente novamente!" ) ;
                return 1;
            }
 //ESTAMOS TRATANDO DESSA LINHA             if ( StrToInt(inputtext) >= 0 && StrToInt(inputtext) <= 299)
            {
if(StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272 ||
StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272)
                {
                    SendClientMessage ( playerid , Vermelho, "Skin proibido, tente outro! | ID's = 0-298" ) ;
                    return 1;
                }
a parte ai acima e abaixo tbm '-'

Realmente apliquei a comparaзгo de forma errada (&& ||)
Reply
#5

Quote:
Originally Posted by focaximubh
Посмотреть сообщение
pawn Код:
if ( dialogid == skins)
    {
        if ( response == 1)
        {
            if ( !VBIsNumeric(inputtext))
            {
                SendClientMessage ( playerid , Vermelho, "Valor invбlido, tente novamente!" ) ;
                return 1;
            }
 //ESTAMOS TRATANDO DESSA LINHA             if ( StrToInt(inputtext) >= 0 && StrToInt(inputtext) <= 299)
            {
if(StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272 ||
StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272)
                {
                    SendClientMessage ( playerid , Vermelho, "Skin proibido, tente outro! | ID's = 0-298" ) ;
                    return 1;
                }
a parte ai acima e abaixo tbm '-'

Realmente apliquei a comparaзгo de forma errada (&& ||)
Mano testei esse code aqui e nгo deu esses erros ai >:S, ou o erro estб mais pra cima ou ta meio "bugado"

pawn Код:
if(dialogid == skins)
    {
        if(response == 1)
        {
            if(!VBIsNumeric(inputtext))
            {
                SendClientMessage(playerid, Vermelho, "Valor invбlido, tente novamente!");
                return 1;
            }
            if(StrToInt(inputtext) >= 0 && StrToInt(inputtext) <= 299)
            {
                if(StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272 ||
                StrToInt(inputtext) == 292 || StrToInt(inputtext) == 271 || StrToInt(inputtext) == 272)
                {
                    SendClientMessage ( playerid , Vermelho, "Skin proibido, tente outro! | ID's = 0-298" ) ;
                    return 1;
                }
            }
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)