random car colours
#7

Quote:
Originally Posted by wafffllesss
AddStaticVehicle(modelid, Floatpawn_x, Floatpawn_y,Floatpawn_z, Float:angle, -1, -1);
Ok, I Never explained fully what i wanted:
What i want to do is to be able to select these colors and insert them to the addstaticvehicles so For example, I Want this to give random colors when a player approaches or the server map changes, Because its a common stunt server and people like it, many people have requested it.

Thanks for any help.

PS. Currently I Currently Get a major application error when compiling, As soon as i add this, with the other its ok, but soon as this hits the pwn file, its errors. Can you check if its ok, I Noticed "tColor" shouldnt that be rColor?
pawn Код:
#define tColors 2
pawn Код:
new vColor[tColors][1] = {
pawn Код:
new rColor = random(sizeof(vColor));
AddStaticVehicle(451,1000,1000,15,280,vColor[rColor][0],vColor[rColor][0]);
The error i get
Код:
---------------------------
pawncc.exe - Application Error
---------------------------
The instruction at "0x100119ec" referenced memory at "0x00000044". The memory could not be "read".
Reply


Messages In This Thread
random car colours - by winker2k6 - 19.03.2008, 19:46
Re: random car colours - by Pixels^ - 19.03.2008, 19:49
Re: random car colours - by winker2k6 - 19.03.2008, 19:49
Re: random car colours - by winker2k6 - 19.03.2008, 20:04
Re: random car colours - by Pixels^ - 19.03.2008, 20:12
Re: random car colours - by wafffllesss - 20.03.2008, 00:08
Re: random car colours - by winker2k6 - 20.03.2008, 00:20
Re: random car colours - by winker2k6 - 20.03.2008, 07:48
Re: random car colours - by [BrOoklYn_bEasT] - 16.09.2009, 02:05

Forum Jump:


Users browsing this thread: 3 Guest(s)