SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 08/11/2011, 11:15 PM   #1
Baigou
Big Clucker
 
Baigou's Avatar
 
Join Date: Sep 2011
Posts: 140
Reputation: 0
Default [AJUDA] Stock stock GetVehicleModelID(nome[])

Ola , boa noite. EU estava precisando de uma ajudinha com uma certa duvida.


Para que serve essa Stock.

pawn Code:
for(new i = 0; i < 211; i++)
    {
        if (strfind(Veiculos[i], nome, true) != -1) return i + 400;
    }
    return -1;
}

Grato.
Baigou is offline   Reply With Quote
Old 08/11/2011, 11:21 PM   #2
[O.z]Caroline
High-roller
 
[O.z]Caroline's Avatar
 
Join Date: Sep 2011
Location: Brazil
Posts: 1,453
Reputation: 97
Default Re: [AJUDA] Stock stock GetVehicleModelID(nome[])

a variável "i" percorre a array Veiculos procurando a igualidade de palavras.
caso achar, ele returna ao modelo do veiculo.
__________________
[O.z]Caroline is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA] stock retornando dia e hora [N]inja Português/Portuguese 15 13/10/2011 11:23 PM
[AJUDA]palavra 'stock' Exploit_SR Português/Portuguese 5 14/07/2011 10:25 PM
[Ajuda] Stock INGOORG JOKERBOY Português/Portuguese 12 12/04/2011 06:20 PM
[Ajuda]Stock Salvar Prof JOKERBOY Português/Portuguese 3 12/04/2011 11:54 AM


All times are GMT. The time now is 08:18 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.