[AJUDA] ERROS AO CRIA /TUTORIAL - 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 AO CRIA /TUTORIAL (
/showthread.php?tid=322850)
[AJUDA] ERROS AO CRIA /TUTORIAL -
rodrigooo - 03.03.2012
bom eu crio essi comando :
// tutorial
if (strcmp("/tutorial", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"T UTORIAL:","Nosso Servido Contem 4 Facзхes, 2 Policia e 1 Agencia de Reporter\r\n Facзхes - Comando Vermelho ( CV ) Primeiro Comando Puro ( PCC ) Terceiro Comando Puro ( TCP ) Amigos dos Amigos ( ADA ) \r\n AS FACЗХES SAO RIVAIS ENTAO E TIPO CV + PCC VS TCP + ADA \r\n AS POLICIAS SAO CONTRA TODAS AS FACЗХES MENOS CONTRA OS REPORTERES RFB \r\n Ninguem Pode Matar um Reporter quando eli esta Trabalhando ( quando eli esta Trabalhando Fica com o Nick Roxo ) \r\n os Reporteres Sao Responsaveis Por Grava Guerra entri Facзхes e Policia \r\n Qualquer Coisa Consulte um Adm ou Digite /Regras","Ok", "Cancelar");
return 1;
}
_________________
e da essis erros
____
C:\Documents and Settings\Elian Sampaio\Desktop\terminadokkkkk\filterscripts\FS1.p wn(1497) : error 075: input line too long (after substitutions)
C:\Documents and Settings\Elian Sampaio\Desktop\terminadokkkkk\filterscripts\FS1.p wn(149
: error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Elian Sampaio\Desktop\terminadokkkkk\filterscripts\FS1.p wn(149
: error 017: undefined symbol "Nosso"
C:\Documents and Settings\Elian Sampaio\Desktop\terminadokkkkk\filterscripts\FS1.p wn(149
: error 017: undefined symbol "Servido"
C:\Documents and Settings\Elian Sampaio\Desktop\terminadokkkkk\filterscripts\FS1.p wn(149
: fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Re: [AJUDA] ERROS AO CRIA /TUTORIAL -
paulor - 03.03.2012
Ta ae!
pawn Код:
//Topo GM
new Tuto[7][128] = {
{"Nosso Servido Contem 4 Facзхes, 2 Policia e 1 Agencia de Reporter\r"},
{"Facзхes - Comando Vermelho ( CV ) Primeiro Comando Puro ( PCC ) Terceiro Comando Puro ( TCP ) Amigos dos Amigos ( ADA ) \r"},
{"AS FACЗХES SAO RIVAIS ENTAO E TIPO CV + PCC VS TCP + ADA \r"},
{"AS POLICIAS SAO CONTRA TODAS AS FACЗХES MENOS CONTRA OS REPORTERES RFB \r"},
{"Ninguem Pode Matar um Reporter quando eli esta Trabalhando ( quando eli esta Trabalhando Fica com o Nick Roxo ) \r"},
{"os Reporteres Sao Responsaveis Por Grava Guerra entri Facзхes e Policia \r"},
{"Qualquer Coisa Consulte um Adm ou Digite /Regras"}
};
//Comando
if (strcmp("/tutorial", cmdtext, true, 10) == 0)
{
new string[600];
for(new i = 0; i < sizeof(Tuto); i++)
format(string, sizeof(string), "%s\n - %s", string, Tuto[i]);
return ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"T UTORIAL:",string,"Ok", "Cancelar");
}
Re: [AJUDA] ERROS AO CRIA /TUTORIAL -
[O.z]Caroline - 03.03.2012
Quote:
Originally Posted by paulor
Ta ae!
pawn Код:
//Topo GM new Tuto[7][128] = { {"Nosso Servido Contem 4 Facзхes, 2 Policia e 1 Agencia de Reporter\r"}, {"Facзхes - Comando Vermelho ( CV ) Primeiro Comando Puro ( PCC ) Terceiro Comando Puro ( TCP ) Amigos dos Amigos ( ADA ) \r"}, {"AS FACЗХES SAO RIVAIS ENTAO E TIPO CV + PCC VS TCP + ADA \r"}, {"AS POLICIAS SAO CONTRA TODAS AS FACЗХES MENOS CONTRA OS REPORTERES RFB \r"}, {"Ninguem Pode Matar um Reporter quando eli esta Trabalhando ( quando eli esta Trabalhando Fica com o Nick Roxo ) \r"}, {"os Reporteres Sao Responsaveis Por Grava Guerra entri Facзхes e Policia \r"}, {"Qualquer Coisa Consulte um Adm ou Digite /Regras"} };
//Comando if (strcmp("/tutorial", cmdtext, true, 10) == 0) { new string[600]; for(new i = 0; i < sizeof(Tuto); i++) format(string, sizeof(string), "%s\n - %s", string, Tuto[i]); return ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"T UTORIAL:",string,"Ok", "Cancelar"); }
|
Evite criar variбveis desnecessбrias =)
pawn Код:
if (strcmp("/tutorial", cmdtext, true, 10) == 0)
{
new Car[580];
strcat(Car, "Nosso Servido Contem 4 Facзхes, 2 Policia e 1 Agencia de Reporter\r\n");
strcat(Car, "Facзхes - Comando Vermelho ( CV ) Primeiro Comando Puro ( PCC ) Terceiro Comando Puro ( TCP ) Amigos dos Amigos ( ADA ) \r\n");
strcat(Car, "AS FACЗХES SAO RIVAIS ENTAO E TIPO CV + PCC VS TCP + ADA \r\n");
strcat(Car, "AS POLICIAS SAO CONTRA TODAS AS FACЗХES MENOS CONTRA OS REPORTERES RFB \r\n");
strcat(Car, "Ninguem Pode Matar um Reporter quando eli esta Trabalhando ( quando eli esta Trabalhando Fica com o Nick Roxo ) \r\n");
strcat(Car, "os Reporteres Sao Responsaveis Por Grava Guerra entri Facзхes e Policia \r\n");
strcat(Car, "Qualquer Coisa Consulte um Adm ou Digite /Regras");
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"T UTORIAL:", Car,"Ok", "Cancelar");
return 1;
}
Re: [AJUDA] ERROS AO CRIA /TUTORIAL -
paulor - 03.03.2012
Quote:
Originally Posted by [O.z]Caroline
Evite criar variбveis desnecessбrias =)
pawn Код:
if (strcmp("/tutorial", cmdtext, true, 10) == 0) { new Car[580]; strcat(Car, "Nosso Servido Contem 4 Facзхes, 2 Policia e 1 Agencia de Reporter\r\n"); strcat(Car, "Facзхes - Comando Vermelho ( CV ) Primeiro Comando Puro ( PCC ) Terceiro Comando Puro ( TCP ) Amigos dos Amigos ( ADA ) \r\n"); strcat(Car, "AS FACЗХES SAO RIVAIS ENTAO E TIPO CV + PCC VS TCP + ADA \r\n"); strcat(Car, "AS POLICIAS SAO CONTRA TODAS AS FACЗХES MENOS CONTRA OS REPORTERES RFB \r\n"); strcat(Car, "Ninguem Pode Matar um Reporter quando eli esta Trabalhando ( quando eli esta Trabalhando Fica com o Nick Roxo ) \r\n"); strcat(Car, "os Reporteres Sao Responsaveis Por Grava Guerra entri Facзхes e Policia \r\n"); strcat(Car, "Qualquer Coisa Consulte um Adm ou Digite /Regras"); ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"T UTORIAL:", Car,"Ok", "Cancelar"); return 1; }
|
kkkk strcat passou batido agora! nem pensei em usar..
Re: [AJUDA] ERROS AO CRIA /TUTORIAL -
rodrigooo - 03.03.2012
caroline aqui quando eu fui compila fico sem sucess como se tivese sem chaves como arrumo isso ? '-'