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



[Ajuda] Como fazer? - Saw_BR - 08.02.2012

galera seguite preciso que isso ae check o ID do carro +1

tipo

meu carro й o [10] entao eu preciso que isso ae vai checar se o carro ID [11] й seu

pawn Код:
if(PlayerInfo[playerid][pCarKey] != vehid && PlayerInfo[playerid][pCarKey2] != vehid && PlayerInfo[playerid][pCarKey3] != vehid)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Esse nгo й seu Carro VIP.");
                    return 1;
                }



Re: [Ajuda] Como fazer? - Shadoww5 - 08.02.2012

Coloque +1 na variavel vehid quando ela for obtida.


Re: [Ajuda] Como fazer? - Saw_BR - 08.02.2012

Quote:

Coloque +1 na variavel vehid quando ela for obtida.

pode mostra como fica?


Re: [Ajuda] Como fazer? - Ricop522 - 08.02.2012

vehid+1?