[Ajuda] Include streamer com - 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] Include streamer com (
/showthread.php?tid=530089)
Include streamer com -
bruxo00 - 05.08.2014
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 202: number 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 (c) 1997-2006, ITB CompuPhase
1 Error.
Linhas do problema e linhas prуximas:
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
Streamer_CallbackHook(STREAMER_OPDC, playerid, reason);
#if defined Streamer_OnPlayerDisconnect
return Streamer_OnPlayerDisconnect(playerid, reason); // LINHA DO WARNING
#else
return 1;
#endif
}
#if defined Streamer_OnPlayerDisconnect
forward Streamer_OnPlayerDisconnect(playerid, reason); // LINHA DO ERRO
#endif
#if defined _ALS_OnPlayerDisconnect
#undef OnPlayerDisconnect
#else
#define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect
Re: Include streamer com -
ViniBorn - 05.08.2014
Tenta esses.
Re: Include streamer com -
SeV_ - 05.08.2014
Verifique a OnPlayerDisconnect de seu script, ou mostre a nуs.
Re: Include streamer com -
bruxo00 - 05.08.2014
Jб resolvi. Faltava a reason no meu script.