[AJUDA]Mais Um Errinho !
#1

Erro :

Quote:

D:\Usuarios\Desktop\samp03csvr_R2-2_win32\gamemodes\sb1.pwn(4336) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
D:\Usuarios\Desktop\samp03csvr_R2-2_win32\gamemodes\sb1.pwn(4984) : warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Pawno Linha 4336:
Quote:

public OnPlayerPrivmsg(playerid, recieverid, text[])

Pawno Linha 4984:
Quote:

public OnPlayerInfoChange(playerid)

Pawno Linha
Reply
#2

pawn Код:
forward OnPlayerPrivmsg(playerid, recieverid, text[]);
forward OnPlayerInfoChange(playerid);
Tenta colocar isso em cima de cada public ou no comeзo do GM.
E isso й um warning. =)
Reply
#3

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
pawn Код:
forward OnPlayerPrivmsg(playerid, recieverid, text[]);
forward OnPlayerInfoChange(playerid);
Tenta colocar isso em cima de cada public ou no comeзo do GM.
E isso й um warning. =)
Cara Eu Coloco

Quote:

forward OnPlayerPrivmsg(playerid, recieverid, text[]);
forward OnPlayerInfoChange(playerid);

Aparece Esses 2 Erros Na Duas Linhas:

Quote:

D:\Usuarios\Desktop\samp03csvr_R2-2_win32\gamemodes\sb1.pwn(433 : error 055: start of function body without function header
D:\Usuarios\Desktop\samp03csvr_R2-2_win32\gamemodes\sb1.pwn(4339) : error 010: invalid function or declaration
D:\Usuarios\Desktop\samp03csvr_R2-2_win32\gamemodes\sb1.pwn(4986) : error 055: start of function body without function header
D:\Usuarios\Desktop\samp03csvr_R2-2_win32\gamemodes\sb1.pwn(4987) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply
#4

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

Warning: This callback was removed in SA-MP 0.3. See below how to create a /pm command.
Aviso: Esta public foi removida no SA-MP 0.3. vocк tem que criar o comando /PM.

pawn Код:
if(!strcmp("/pm", cmdtext, true))
{
    tmp = strtok(cmdtext,idx);
    if(!strlen(tmp)) return SendClientMessage(playerid,0xFF0000FF,"USAGE: /PM (id) (message)");
    new id = strval(tmp);
    gMessage = strrest(cmdtext,idx);
    if(!strlen(gMessage)) return SendClientMessage(playerid,0xFF0000FF,"Usage: /pm (id) (message)");       
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFF0000FF,"/pm :Invalid ID");
    GetPlayerName(id,iName,sizeof(iName));
    GetPlayerName(playerid,pName,sizeof(pName));
    format(Message,sizeof(Message),">> %s(%i): %s",iName,id,gMessage);
    SendClientMessage(playerid,0xFFD720FF,Message);
    format(Message,sizeof(Message),"** %s(%i): %s",pName,playerid,gMessage);
    SendClientMessage(id,0xFFD720FF,Message);
    PlayerPlaySound(id,1085,0.0,0.0,0.0);
    return 1;
}

Att: [iPs]Garfield
Reply
#5

Amigo, apague essa public's elas nгo estгo sendo usadas e estгo sendo definidas.
Pelo meu conceito vocк estб criando um FS ou um GM.
Entгo procure e apague-as dentro do script.
Att.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)