Help me with AddStaticVehicleEx
#1

so this is my rp game mode script im workin on below:

#include <a_samp>

main()
{
print("\n------------------------------------");
print(" Anthonys GameMode Locked and Loaded!");
print("------------------------------------\n");
return 1;
}


public OnGameModeInit()
{
SetGameModeText("Hunter Script");
AddPlayerClass(105,1931.9152,-1772.2585,13.3828,274.4115,0,0,0,0,0,0); // groveskin1
AddPlayerClass(106,1931.9152,-1772.2585,13.3828,274.4115,0,0,0,0,0,0); // grovest2
AddPlayerClass(107,1931.9152,-1772.2585,13.3828,274.4115,0,0,0,0,0,0); // grovest3
AddPlayerClass(102,1931.9152,-1772.2585,13.3828,274.4115,0,0,0,0,0,0); // ballaskin1
AddPlayerClass(103,1931.9152,-1772.2585,13.3828,274.4115,0,0,0,0,0,0); // ballaskin2
AddPlayerClass(104,1931.9152,-1772.2585,13.3828,274.4115,0,0,0,0,0,0); // ballskin 3
//cars
AddStaticVehicleEx(522,1940.3895,-1770.7438,12.9554,357.5270,3,;

return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1176.2181,-1995.1696,69.007;
SetPlayerFacingAngle(playerid, 155.3725);
SetPlayerCameraPos(playerid, 1175.6296,-1998.9053,69.007;
SetPlayerCameraLookAt(playerid, 1176.2181,-1995.1696,69.007;
return 1;
}



When i Complie my script i get these warnings:

C:\samp\sampserver\samp03csvr_win32\gamemodes\hunt er.pwn(22) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


My server still works, but im concern for future errors. Should i be concern, and if its not a good thing how can i fix this problem.Im very new to scripting, and is trying to get the basic shit down. Also can someone tell me how i can post my script and warning message in a window in my post. Like the rest of you guys do.
Reply
#2

Check out:

https://sampwiki.blast.hk/wiki/AddStaticVehicleEx

Listen:

AddStaticVehicleEx( 522 , 1940.3895 , -1770.7438 , 12.9554 , 357.5270 , 3, 0, 30);

522 = Model ID (of vehicle)
1940.3895 = X coordinate
-1770.7438 = Y Coordinate
12.9554 = Z Coordinate
357.5270 = Facing Angle
3 = Color one
0 = Color two
30 = Time of respawn (in seconds)

Sorry for my english
Reply
#3

Quote:
Originally Posted by Sandman-x
Посмотреть сообщение
Check out:

https://sampwiki.blast.hk/wiki/AddStaticVehicleEx

Listen:

AddStaticVehicleEx( 522 , 1940.3895 , -1770.7438 , 12.9554 , 357.5270 , 3, 0, 30);

522 = Model ID (of vehicle)
1940.3895 = X coordinate
-1770.7438 = Y Coordinate
12.9554 = Z Coordinate
357.5270 = Facing Angle
3 = Color one
0 = Color two
30 = Time of respawn (in seconds)

Sorry for my english
This is what i did, and i get that warning message. Im so confussed=[
Reply
#4

i dont know , the line of AddStaticVehicle is the warning?, sure?

AddStaticVehicleEx( 522 , 1940.3895 , -1770.7438 , 12.9554 , 357.5270 , 3, 0, 30);

Use this, or i dont know... good luck
Reply
#5

Quote:
Originally Posted by Sandman-x
Посмотреть сообщение
i dont know , the line of AddStaticVehicle is the warning?, sure?

AddStaticVehicleEx( 522 , 1940.3895 , -1770.7438 , 12.9554 , 357.5270 , 3, 0, 30);

Use this, or i dont know... good luck
when i added that line insted of my life i get no warnings=DDo you know why this is?
Reply
#6

Use https://sampwiki.blast.hk/wiki/AddStaticVehicle

for
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx

Check out the syntax and test
Reply
#7

Change it to AddStaticVehicle
Reply
#8

Quote:
Originally Posted by THE_KNOWN
Посмотреть сообщение
Change it to AddStaticVehicle
I am testing out all the commands and already know how to use that one. I wanted to make a car repsawn 15 seconds when its not in use. WHich i did=D

Quote:
Originally Posted by Sandman-x
Посмотреть сообщение
Thanks again man.
Reply
#9

i thought the Ex one didnt work for you after someone suggested changed
Reply
#10

AddStaticVehicle respawn vehicle in 30 seconds, if when its not in use, i think
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)