SA-MP Forums Archive
[Ajuda] 2 WARNINGS Nгo entendi?? - 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] 2 WARNINGS Nгo entendi?? (/showthread.php?tid=601299)



2 WARNINGS Nгo entendi?? - joaobgnc - 19.02.2016

Quote:
Quote:

C:\Documents and Settings\Administrador\Desktop\GM Beta\gamemodes\FSMINI.pwn(853) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Documents and Settings\Administrador\Desktop\GM Beta\gamemodes\FSMINI.pwn(1422) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

linha 853

Quote:

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;

linha 1422
Quote:

public OnPlayerInfoChange(playerid)
{
return 1;




Re: 2 WARNINGS Nгo entendi?? - ZackT - 19.02.2016

Pelo que eu entendi esta faltando a forward delas declarada, adicione o cуdigo no topo ou no fim do GM

Код:
forward OnPlayerPrivmsg(playerid, recieverid, text[]);
forward OnPlayerInfoChange(playerid);



Re: 2 WARNINGS Nгo entendi?? - zPain - 19.02.2016

Sobre OnPlayerPrivmsg:

Quote:

Warning: This callback was removed in SA-MP 0.3. See below how to create a /pm command.

https://sampwiki.blast.hk/wiki/OnPlayerPrivmsg