Warning ?
#1

when i was compiling my GM it was always good and no errors or warnings, but now when i added train "AddStatickVehicle" it gives me 1 warning :

Код:
/(5564) : warning 202: number of arguments does not match definition
Line 5564:
Код:
AddStaticVehicle(538,1722.8712,-1953.7305,14.8756,89.8164, -1, -1, never); // Train
and the train works perefctly and nothing wrong but i dont need this warning please help.
Reply
#2

the "never" has to be a number
Reply
#3

what "never" mean ?
Reply
#4

AddStaticVehicle has 7 arguments, so
pawn Код:
AddStaticVehicle(538, 1722.8712, -1953.7305, 14.8756, 89.8164, -1, -1);
Reply
#5

Quote:
Originally Posted by dice7
AddStaticVehicle has 7 arguments, so
pawn Код:
AddStaticVehicle(538, 1722.8712, -1953.7305, 14.8756, 89.8164, -1, -1);
Thanks this worked and now i got no warning but umm what the "NEVER" means ? and now after i remove the never is something wrong gonna happend ?
Reply
#6

The 'never' probably standed for the respawn parameter which the functions CreateVehicle() and AddStaticVehicleEx() have.
Just check the wiki

https://sampwiki.blast.hk/wiki/AddStaticVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
https://sampwiki.blast.hk/wiki/CreateVehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)