[Ajuda] Como resolver ? - 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] Como resolver ? (
/showthread.php?tid=453800)
Como resolver ? -
minimessi10 - 26.07.2013
pawn Code:
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(306) : warning 209: function "OnPlayerRequestClass" should return a value
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(324) : error 012: invalid function call, not a valid address
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(324) : warning 215: expression has no effect
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(324) : error 001: expected token: ";", but found ")"
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(324) : error 029: invalid expression, assumed zero
C:\Users\Marcelo\Documents\Servers\samp03x_svr_R1-2_win32\gamemodes\GM.pwn(324) : 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.
Linha 306
pawn Code:
if(strfind(name(playerid), "[SA]", true) != -1){
Re: Como resolver ? -
Don_Speed - 26.07.2013
Linha 306
A linha acima desta falta um return ou return incorreto!
Re: Como resolver ? -
LordShadow - 26.07.2013
A Linha 306 que deve ser o Final da callback
OnPlayerRequestClass estб faltando um Return, como o Don falou.
A Linha 324
Vocк colocou:
pawn Code:
if(strfind(name(playerid), "[SA]", true) != -1){
Entгo coloque
pawn Code:
if(strfind("[SA]",name(playerid), true) != -1){
Vocк havia colocado name(playerid) no lugar errado, primeiro vem a mensagem.