Quote:
Originally Posted by wafffllesss
AddStaticVehicle(modelid, Float pawn_x, Float pawn_y,Float pawn_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 Код:
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".