SA-MP Forums Archive
[Ajuda] patente - 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] patente (/showthread.php?tid=492251)



patente - Lucas_HenryK - 03.02.2014

que sinal eu deveria usar para ficar tipo, certinho se tem 1000 a 1999 й soldado .. etc

if(PlayerInfo[x][Kills] < 0) Patente = "Novato";
if(PlayerInfo[x][Kills] < 1000) Patente = "Soldado";


Re: patente - kevinho.007 - 03.02.2014

Exemplo:

Код:
new Patente[64];

if(PlayerInfo[x][Kills] < 0) { Patente = "Novato"; }
else if(PlayerInfo[x][Kills] < 1000) { Patente = "Soldado"; }



Re: patente - rjjj - 03.02.2014

Faзa como neste exemplo :


pawn Код:
if(x >= 0 && x <= 9)
{
    print("x й igual a 0, 1, 2, 3, 4, 5, 6, 7, 8 ou 9.");
}


Considerando x como uma variбvel para nъmeros inteiros.



Espero ter ajudado .