SA-MP Forums Archive
[ajuda] error 036: empty statement - 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] error 036: empty statement (/showthread.php?tid=349618)



[ajuda] error 036: empty statement - F_Cinco - 09.06.2012

Linha:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,0.8,290.4279,-106.9147,1001.5156)); {
Funзгo:
pawn Код:
if((newkeys==KEY_SECONDARY_ATTACK)) //Tecla F/Enter

    if(IsPlayerInRangeOfPoint(playerid,0.8,290.4279,-106.9147,1001.5156)); {
    ShowPlayerDialog(playerid, LojaDeArmas1,DIALOG_STYLE_LIST, "Armas", "Deagle (R$150,00)\nMP5 (R$210,00)\nM4A1 (R$1.000)\nAK47 (R$970,00)", "Comprar", "Sair");
    }
Estou fazendo um sistema de loja de armas, e gostaria de chamar o dialog no IsPlayerInRangeOfPoint, e n ao passar na pickup.


Re: [ajuda] error 036: empty statement - Bruno Pereira - 09.06.2012

Nгo coloca ponto e virgula em condiзгo

PHP код:
if((newkeys==KEY_SECONDARY_ATTACK)) //Tecla F/Enter

    
if(IsPlayerInRangeOfPoint(playerid,0.8,290.4279,-106.9147,1001.5156)) {
    
ShowPlayerDialog(playeridLojaDeArmas1,DIALOG_STYLE_LIST"Armas""Deagle (R$150,00)\nMP5 (R$210,00)\nM4A1 (R$1.000)\nAK47 (R$970,00)""Comprar""Sair");
    } 



Re: [ajuda] error 036: empty statement - F_Cinco - 09.06.2012

Quote:
Originally Posted by Bruno Pereira
Посмотреть сообщение
Nгo coloca ponto e virgula em condiзгo

PHP код:
if((newkeys==KEY_SECONDARY_ATTACK)) //Tecla F/Enter
    
if(IsPlayerInRangeOfPoint(playerid,0.8,290.4279,-106.9147,1001.5156)) {
    
ShowPlayerDialog(playeridLojaDeArmas1,DIALOG_STYLE_LIST"Armas""Deagle (R$150,00)\nMP5 (R$210,00)\nM4A1 (R$1.000)\nAK47 (R$970,00)""Comprar""Sair");
    } 
Vlw, Bruno!

Obs.: Tem algum tuto explicando melhor sobre "condiзхes" ?


Re: [ajuda] error 036: empty statement - Bruno Pereira - 09.06.2012

Deixa eu ver se acho aqui e jб dou edit.
Mas condiзхes sгo simples, o prуprio nome jб diz xD, elas sгo o mesmo de SE - SENГO.
Exemplos:

pawn Код:
if(1 == 2) // SE 1 for IGUAL da 2...
{
SendClientMessage(playerid, -1, "1 й igual a 2");
}
else // Senгo...
{
SendClientMessage(playerid, -1, "1 nгo й igual a 2");
}
Isso foi um SIIIMPLES exemplo viu kkk, tem muito mais, mas й simples.
Vou procurar aqui tuturiais.


Re: [ajuda] error 036: empty statement - F_Cinco - 09.06.2012

Quote:
Originally Posted by Bruno Pereira
Посмотреть сообщение
Deixa eu ver se acho aqui e jб dou edit.
Mas condiзхes sгo simples, o prуprio nome jб diz xD, elas sгo o mesmo de SE - SENГO.
Exemplos:

pawn Код:
if(1 == 2) // SE 1 for IGUAL da 2...
{
SendClientMessage(playerid, -1, "1 й igual a 2");
}
else // Senгo...
{
SendClientMessage(playerid, -1, "1 nгo й igual a 2");
}
Isso foi um SIIIMPLES exemplo viu kkk, tem muito mais, mas й simples.
Vou procurar aqui tuturiais.
Vlws aк, chapa!


Re: [ajuda] error 036: empty statement - Bruno Pereira - 09.06.2012

Tutorial sobre operadores:
https://sampforum.blast.hk/showthread.php?tid=240266

Sobre condicionais nao achei =x


Re: [ajuda] error 036: empty statement - F_Cinco - 09.06.2012

Quote:
Originally Posted by Bruno Pereira
Посмотреть сообщение
Tutorial sobre operadores:
https://sampforum.blast.hk/showthread.php?tid=240266

Sobre condicionais nao achei =x
Vlws mais uma vez, Bruno. Irб me ajudar muito.