Anyone know a car spawner?
#2

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"
};
pawn Код:
array[0]
Would return "a".

pawn Код:
array[1]
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.
Reply


Messages In This Thread
Anyone know a car spawner? - by [mad]MLK - 04.09.2009, 23:18
Re: Anyone know a car spawner? - by Zezombia - 04.09.2009, 23:20
Re: Anyone know a car spawner? - by [mad]MLK - 07.09.2009, 03:33
Re: Anyone know a car spawner? - by Eazy_Efolife - 07.09.2009, 06:11

Forum Jump:


Users browsing this thread: 2 Guest(s)