[Ajuda] alguйm pode me ajuda jб passei mais de 2 horas nisto e nada :(
#1

pwn(1027) : error 017: undefined symbol "WriteLog"
Reply
#2

2 horas? Oxe kk, junto com as new's de seu GM coloque:

new WriteLog;

Abs;
Reply
#3

.pwn(1030) : error 012: invalid function call, not a valid address
.pwn(1030) : warning 215: expression has no effect
.pwn(1030) : warning 215: expression has no effect
.pwn(1030) : error 001: expected token: ";", but found ")"
.pwn(1030) : error 029: invalid expression, assumed zero
.pwn(1030) : fatal error 107: too many error messages on one line
Reply
#4

.pwn(1030) : error 012: invalid function call, not a valid address
.pwn(1030) : warning 215: expression has no effect
.pwn(1030) : warning 215: expression has no effect
.pwn(1030) : error 001: expected token: ";", but found ")"
.pwn(1030) : error 029: invalid expression, assumed zero
.pwn(1030) : fatal error 107: too many error messages on one line

mas depois aparece isto jб coloque uma : new Writelog; , mas apacere a mensagem acima ajuda por favor
Reply
#5

Apaga o que o carinha ali falou pra voce colocar, compila dnv e posta a linha do erro, posta tbm as linhas anteriores e posteriores da funзгo
Reply
#6

C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1025) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1030) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1051) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1070) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1076) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1191) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1446) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1602) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(161 : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1635) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1852) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1867) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1889) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1905) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1933) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(1985) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(2020) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(203 : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(2065) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(2066) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(2082) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(2104) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(2172) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(2229) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(2323) : error 017: undefined symbol "WriteLog"
C:\Users\Geo Santos\Servidor\Meu Servidor\GM\gamemodes\GM.pwn(2362) : error 017: undefined symbol "WriteLog"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.


Aparece isto, ai quando coloco junto com minha news a new:'' new WriteLog; '' dar o erro que vc viu aн. desde ja obrigado pela ajuda.
Reply
#7

pode ser tambйm uma stock

pawn Код:
stock WriteLog()
{
    // resto das funзгo
    return 1;
}
Reply
#8

nгo sei como resolver este do stock, onde pego esse " resto da funзгo" ?
Reply
#9

Pelo nome, acredito tbm q seja uma stock.
Se vc copiou isso de algum lugar e nгo pegou essa stock... sу lamento.
Reply
#10

Com uma simples pesquisa:
PHP код:
stock WriteLog(log[], string[])
{
    new 
File:handler;
    new 
buffer[512];
    new 
tmp[128];
    new 
bool:found;
    static 
wldaywlmonthwlyear;
    new 
daymonthyearhourminutesecondweekday;
    new 
fname[128];

    
getdate(yearmonthday);
    
gettime(hourminutesecond);
    
weekday getweekday(yearmonthday) - 1;

    
format(fname128"biologicalwar/logs/%s.log"log);

    if(!
fexist(fname))
    {
        
handler fopen(fnameio_write);
        
printf("Server Log '%s' created!"log);

        
format(buffer512"@ Biological Warfare - %s log @\r\n\r\n\t ·-=-· %s, %s %d%s, %d ·-=-· \r\n\r\n[%02d:%02d:%02d] %s\r\n"logWeekdayName[weekday], MonthName[month-1], dayGetOrdinalNumber(day), yearhourminutesecondstring);
        
fwrite(handlerbuffer);

        
fclose(handler);

        
wlyear yearwlmonth monthwlday day;
        return 
true;
    }
    else
    {
      if(
wlyear == year && wlmonth == month && wlday == day)
      {
        
handler fopen(fnameio_append);

        
format(buffer512"[%02d:%02d:%02d] %s\r\n"hourminutesecondstring);
            
fwrite(handlerbuffer);

            
fclose(handler);

            return 
true;
        }
        else
        {
          
handler fopen(fnameio_read);

          
format(tmp128"%s, %s %d%s, %d"WeekdayName[weekday], MonthName[month-1], dayGetOrdinalNumber(day), year);

          while(
fread(handlerbuffer))
          {
            if(
strfind(buffertmp) >= 0)
            {
              
found true;
              break;
                }
            }

            
fclose(handler);
            
handler fopen(fnameio_append);

            if(
found)
            {
              
format(buffer512"[%02d:%02d:%02d] %s\r\n"hourminutesecondstring);
                
fwrite(handlerbuffer);

                
fclose(handler);

                
wlyear yearwlmonth monthwlday day;

                return 
true;
            }
            else
            {
              
format(buffer512"\r\n\t ·-=-· %s, %s %d%s, %d ·-=-· \r\n\r\n[%02d:%02d:%02d] %s\r\n"WeekdayName[weekday], MonthName[month-1], dayGetOrdinalNumber(day), yearhourminutesecondstring);
                
fwrite(handlerbuffer);

                
fclose(handler);

                
wlyear yearwlmonth monthwlday day;
                return 
true;
            }
        }
    }

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)