[Ajuda] Include streamer com
#1

Tenho a versгo mais recente do Streamer (include + plugin) e dб-me um erro e um warning a compilar. Isto nгo acontece com uma versгo mais antiga que tenho aqui.

PHP код:
C:\Users\Utilizador\Desktop\Super Street Racing SAMP\pawno\include\streamer.inc(325) : warning 202number of arguments does not match definition
C
:\Users\Utilizador\Desktop\Super Street Racing SAMP\pawno\include\streamer.inc(332) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

Linhas do problema e linhas prуximas:

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    
Streamer_CallbackHook(STREAMER_OPDCplayeridreason);
    
#if defined Streamer_OnPlayerDisconnect
        
return Streamer_OnPlayerDisconnect(playeridreason); // LINHA DO WARNING
    #else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerDisconnect
    
forward Streamer_OnPlayerDisconnect(playeridreason); // LINHA DO ERRO
#endif
#if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
#else
    #define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect 
Reply
#2

Tenta esses.
Reply
#3

Verifique a OnPlayerDisconnect de seu script, ou mostre a nуs.
Reply
#4

Jб resolvi. Faltava a reason no meu script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)