SA-MP Forums Archive
[ajuda] Erros - 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] Erros (/showthread.php?tid=349987)



[ajuda] Erros - F_Cinco - 10.06.2012

Erros:
pawn Код:
C:\Users\Windows7\Desktop\SAMP\gamemodes\PO.pwn(1120) : error 021: symbol already defined: "format"
C:\Users\Windows7\Desktop\SAMP\gamemodes\PO.pwn(1121) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Linhas:
pawn Код:
}
    return 1;
    }
    format(string,sizeof(string),"[ERRO] %s comando Inexistente!",cmdtext);
    return SendClientMessage(playerid,vermelho,string);
    }
Obs.: Estou tentando fazer com q o player ao digitar um cmd inexistente, apareзa essa menssagem.


Re: [ajuda] Erros - Don_Speed - 10.06.2012

pawn Код:
format(string,sizeof(string),"[ERRO] %s comando Inexistente!",cmdtext);
    SendClientMessage(playerid,vermelho,string);
    return 0;
    }



Re: [ajuda] Erros - F_Cinco - 10.06.2012

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
pawn Код:
format(string,sizeof(string),"[ERRO] %s comando Inexistente!",cmdtext);
    SendClientMessage(playerid,vermelho,string);
    return 0;
    }
Mesma coisa, deixei o cуdigo assim:
pawn Код:
}
    return 1;
    }
    format(string,sizeof(string),"[ERRO] %s comando Inexistente!",cmdtext);
    SendClientMessage(playerid,vermelho,string);
E sу ficou o 1є erro... :S


Respuesta: [ajuda] Erros - CidadeNovaRP - 10.06.2012

CODE completo sff