SA-MP Forums Archive
[HELP] Small Mapping Error - REP+1 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Small Mapping Error - REP+1 (/showthread.php?tid=338645)



[HELP] Small Mapping Error - REP+1 - Oscii - 30.04.2012

Hello.

When i try to add a hydra to the mapping via script with this code..

Quote:

AddStaticVehicle(520,121,405.8636,2438.9297,16.500 0,2.3208,0);

It gives me

Tag mismatch error..


Re: [HELP] Small Mapping Error - REP+1 - Niko_boy - 30.04.2012

AddStaticVehicle(520,121.00,405.8636,2438.9297,16. 5000,2.3208,0,0);
here u firstly at 121.00 did 121 i dont know it matters or not and also as 16.500 0 which can cause error
+ there should be 2 colors at end 0 , 0 // unsure about this part
try this instead


Re: [HELP] Small Mapping Error - REP+1 - Oscii - 30.04.2012

Quote:
Originally Posted by Niko_boy
Посмотреть сообщение
AddStaticVehicle(520,121.00,405.8636,2438.9297,16. 5000,2.3208,0,0);
here u firstly at 121.00 did 121 i dont know it matters or not and also as 16.500 0 which can cause error
+ there should be 2 colors at end 0 , 0 // unsure about this part
try this instead
It has worked i guess but now i get 3 warnings instead of one.. :P


: warning 213: tag mismatch
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition


Re: [HELP] Small Mapping Error - REP+1 - newbienoob - 30.04.2012

Let see...

AddStaticVehicle(520,121,405.8636,2438.9297,16.500 0,2.3208,0);
AddStaticVehicle(modelid, x, y, z, angle, color1, color2)

remove 2.3208


Re: [HELP] Small Mapping Error - REP+1 - Oscii - 30.04.2012

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Let see...

AddStaticVehicle(520,121,405.8636,2438.9297,16.500 0,2.3208,0);
AddStaticVehicle(modelid, x, y, z, angle, color1, color2)

remove 2.3208
Okay thats removed two of the warnings, thank you .


Now how do i get rid of the second one.. of the same line

Код:
warning 202: number of arguments does not match definition
The line is now

AddStaticVehicle(520,121,405.8636,2438.9297,16.500 0,0);

i removed the 2.3208 you said to remove and it took two warning off of the three , So one left to manage to take off


Re: [HELP] Small Mapping Error - REP+1 - newbienoob - 30.04.2012

AddStaticVehicle(520,121,405.8636,2438.9297,16.500, 0,0);


Re: [HELP] Small Mapping Error - REP+1 - Oscii - 30.04.2012

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
AddStaticVehicle(520,121,405.8636,2438.9297,16.500, 0,0);
O_O


FIXED!!

Thank you!

+1 Rep for all that posted to this to help me.