SA-MP Forums Archive
[Ajuda] Verificar se veнculo й da org - 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] Verificar se veнculo й da org (/showthread.php?tid=580854)



Verificar se veнculo й da org - waaT - 08.07.2015

Eu estou tentando verificar se um veнculo й da org que estб no parametro

Eu estou pelo celular e nгo sei se esta certo

PHP код:
stock checkveh(orgidvehid) {
for(new 
0MAX_VEHICLESi++) {
if(
orgVeh[orgid][i] == vehid
return 
true;
}
return 
false;

queria saber se estб certo essa funзгo, a variбvel de veнculos й
PHP код:
new orgVeh[ORG_MAX][MAX_VEHICLES



Re: Verificar se veнculo й da org - zSuYaNw - 09.07.2015

sim, esta correcto.

PHP код:
stock checkveh(orgidvehid

    for(new 
0MAX_VEHICLESi++) if(orgVeh[orgid][i] == vehid)   return true;  
    return 
false