[Ajuda] Erro no GM - 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] Erro no GM (
/showthread.php?tid=632211)
Erro no GM -
DaRoma - 10.04.2017
Esta dando este erro no GM
PHP код:
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(26) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(27) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(28) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(29) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(30) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(31) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(32) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(33) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(34) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(35) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(37) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(44) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(45) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(46) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(47) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(48) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(49) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(50) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(51) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(52) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(53) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(55) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(62) : error 017: undefined symbol "Streamer_CallbackHook"
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(65) : error 035: argument type mismatch (argument 1)
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(72) : error 017: undefined symbol "Streamer_CallbackHook"
D:\GTA San Andreas User Files\User Tracks\GM DO DAROMA\RDC v3.0\RDC v3.0\filterscripts\favelas.pwn(75) : error 035: argument type mismatch (argument 1)
26 Errors.
PHP код:
public OnFilterScriptInit()
{
Linha: 26 glob4 = funcidx(40) != -1;
Linha: 27 glob8 = funcidx(140) != -1;
Linha: 28 globC = funcidx(252) != -1;
Linha: 29 glob10 = funcidx(364) != -1;
Linha: 30 glob14 = funcidx(484) != -1;
Linha: 31 glob18 = funcidx(604) != -1;
Linha: 32 glob1C = funcidx(704) != -1;
Linha: 33 glob20 = funcidx(804) != -1;
Linha: 34 glob24 = funcidx(920) != -1;
Linha: 35 if(-1 != funcidx(1036))
{
Linha: 37 return CallLocalFunction(1148, 1260);
}
return 1;
}
PHP код:
public OnGameModeInit()
{
Linha: 44 glob4 = funcidx(1264) != -1;
Linha: 45 glob8 = funcidx(1364) != -1;
Linha: 46 globC = funcidx(1476) != -1;
Linha: 47 glob10 = funcidx(1588) != -1;
Linha: 48 glob14 = funcidx(1708) != -1;
Linha: 49 glob18 = funcidx(1828) != -1;
Linha: 50 glob1C = funcidx(1928) != -1;
Linha: 51 glob20 = funcidx(2028) != -1;
Linha: 52 glob24 = funcidx(2144) != -1;
Linha: 53 if(-1 != funcidx(2260))
{
Linha: 55 return CallLocalFunction(2356, 2452);
}
return 1;
}
PHP код:
public OnPlayerConnect(playerid)
{
Linha: 62 Streamer_CallbackHook(0, playerid);
if(glob4)
{
Linha: 65 return CallLocalFunction(2456, 2556, playerid);
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
Linha: 72 Streamer_CallbackHook(1, playerid, reason);
if(glob8)
{
Linha: 65 return CallLocalFunction(2564, 2676, playerid, reason);
}
return 1;
}
Re: Erro no GM -
DaRoma - 10.04.2017
Ajuda ae.
Re: Erro no GM -
didimk157 - 10.04.2017
ja tentou atualizar sua include streamer ?
Re: Erro no GM -
ViniBorn - 10.04.2017
Й bem provбvel que esse FS tenha sido "descompilado".
Se foi o caso, vocк nгo vai conseguir um resultado satisfatуrio.
Re: Erro no GM -
renatog - 10.04.2017
O erro 035 ocorre quando vocк passa um parвmetro de natureza diferente do que ele pede na funзгo.
No caso a funзгo "funcidx" pede uma string, mas vocк estб passando inteiros. Na verdade nгo entendo o motivo de usar tanto funcidx com inteiros, nгo fez sentido algum pra mim.
O erro 017 diz que a funзгo "Streamer_CallbackHook" nгo existe, ou vocк esqueceu de incluir a include <streamer>.