Edit:
http://pastebin.com/f1a9e9846
That should fit your description (tested).
_________________________________________________
Finding a peice of text in an array is easy enough.
pawn Код:
new array[][]
{
"a",
"b"
};
Would return "a".
Would return "b".
_________________________________________________
pawn Код:
new names[][]
{
"Bullet",
"Infernus"
};
for(new i = 0; i < 2; i++) if(strfind(names[i], "Bul", true) != -1 /*-1 is "not found"*/) printf("%d", names[i]);
That would print "Bullet", because it finds "Bul" in the first (names[
0] == "Bullet") param.
Add every vehicle name to an array (in order of ID) and add 400. For example:
Landstalker should be in the first param, so if found it will be in param 0. 0 plus 400 = 400.
Bravura should be in the second param, so if found it will be in param 1. 1 plus 400 = 401.