[Ajuda] DESBUGAR - 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] DESBUGAR (
/showthread.php?tid=631797)
DESBUGAR -
Dimbalada - 05.04.2017
ALGUEM PODE DESBUGAR PRA MIM ? A PICKUP E 3D JA ESTA CONFIGURADA SO ESSA QUE ESTA BUGADA
if (strcmp("/infoarsenal", cmdtext, true, 10) == 0)
{
new menssagem[256];
format(menssagem, sizeof(menssagem),"Cidade Alta: {E83f15}%d {FFFFFF}Fuzil.",armaFav1);
SendClientMessage(playerid, 0x8955F6AA,menssagem);
}
if (strcmp("/apreenderfuzis", cmdtext, true, 10) == 0)
{
if(Player[playerid][pBOPE] >= 4 || Player[playerid][pPMRJ] >= 4 || Player[playerid][pCORE] >= 4)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 982.7241,2852.7085,39.386
)
{
armaFav1 = 0;
new strfoa[256];
format(strfoa, 128, "** %s apreendeu todos armamentos da favela Cidade Alta.", getPName(playerid));
SendClientMessageToAll(COR_ROXO,strfoa);
return 1;
}
else
{
SendClientMessage(playerid, COR_NEGATIVO, "Vocк nгo estб no arsenal de uma favela!");
return 1;
}
}
else
{
SendClientMessage(playerid, COR_NEGATIVO, "Vocк nгo tem acesso a este comando.");
}
return 1;
}
if (strcmp("/restaurararmamento", cmdtext, true, 10) == 0)
{
if(Player[playerid][pAdmin] >=4)
{
armaFav1 = 5;
SendClientMessage(playerid, 0xAA3333AA,"Vocк restaurou os armamentos de todas favelas!");
GuardarArmas();
return 1;
}
else
{
SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para usar este comando.");
}
return 1;
}
Print dos erros e das linhas
http://ap.imagensbrasil.org/image/jDuXcH
http://ap.imagensbrasil.org/image/jDu1MU
http://ap.imagensbrasil.org/image/jDuUmP
http://ap.imagensbrasil.org/image/jDuCl9
Re: DESBUGAR -
didimk157 - 05.04.2017
antes de vc postar outro tуpico pfv leia aqui
Aqui
Re: DESBUGAR -
Relaxed - 05.04.2017
Pode me explicar que erro estб acontecendo, ou o que estб de errado?
Re: DESBUGAR -
Dimbalada - 05.04.2017
Aki amigo os
PRINT
http://ap.imagensbrasil.org/image/jDuXcH
http://ap.imagensbrasil.org/image/jDu1MU
http://ap.imagensbrasil.org/image/jDuUmP
http://ap.imagensbrasil.org/image/jDuCl9
Re: DESBUGAR -
Dimbalada - 05.04.2017
UP!
UP!
Re: DESBUGAR -
DarkBr - 05.04.2017
O ERRO PODE SER ISSO
SE OU HOUVER 26 ERROS Й POR CAUSA DESSA CHAVE MAU COLOCADA
Respuesta: DESBUGAR -
BrGabrielBr - 05.04.2017
Desses erros todos o ъnico erroo iria ser esse } ? duvido
Re: DESBUGAR -
Relaxed - 05.04.2017
Vocк estб passando esse sistema de outra gamemode, pra sua, certo?
Se for isso...
Os comandos vocк deve colocar nessa callback
PHP код:
OnPlayerCommandText // Vai resolver todas as Undefined symbol "playerid" e "cmdtext"
Vocк nгo definiu a armafav1, acho que nгo definiu nenhuma delas...
PHP код:
new armaFav[12];
E depois no restante dos cуdigos, armaFav[1]...[2] assim por diante.
Re: DESBUGAR -
Dimbalada - 05.04.2017
OnPlayerCommandText Boto aonde?
Re: DESBUGAR -
Relaxed - 05.04.2017
Quote:
Originally Posted by Dimbalada
OnPlayerCommandText Boto aonde?
|
Й uma callback, ela jб tem em seu gamemode, os comandos vocк deve por abaixo dela.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
cmd...
}