Warnings to save vehicle positions
#1

Hello i want to change the vehicle location but when i get the cordinates with /save ingame

and paste it in the script i get this warnings

Warnings:

Код:
 
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
the code what it was:

Код:
	PizzaVehicles[0] = AddStaticVehicleEx(448,-1701.99133301,1378.75817871,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[1] =	AddStaticVehicleEx(448,-1702.81005859,1378.07958984,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[2] =	AddStaticVehicleEx(448,-1703.49853516,1377.28295898,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[3] =	AddStaticVehicleEx(448,-1704.31005859,1376.46240234,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[4] =	AddStaticVehicleEx(448,-1705.17895508,1375.72802734,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[5] =	AddStaticVehicleEx(448,-1709.15429688,1371.57226562,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[6] =	AddStaticVehicleEx(448,-1709.98718262,1370.84716797,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[7] =	AddStaticVehicleEx(448,-1710.77893066,1370.11706543,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[8] =	AddStaticVehicleEx(448,-1711.57092285,1369.38659668,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[9] =	AddStaticVehicleEx(448,-1712.32312012,1368.69396973,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[10] =	AddStaticVehicleEx(448,-1713.02709961,1367.94238281,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[11] =	AddStaticVehicleEx(448,-1713.83740234,1367.19580078,6.85771942,45.00000000,3,6,300); //Pizzaboy

the code what i did

Код:
	PizzaVehicles[0] =  AddStaticVehicleEx(448,2107.3921,-1788.2684,13.5608,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[1] =	AddStaticVehicleEx(448,2109.2798,-1788.2703,13.5608,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[2] =	AddStaticVehicleEx(448,2111.0972,-1788.1920,13.5608,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[3] =	AddStaticVehicleEx(448,2112.9622,-1788.1953,13.5608,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[4] =	AddStaticVehicleEx(448,2114.8472,-1788.2701,13.5608,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[5] =	AddStaticVehicleEx(448,2116.6978,-1788.2202,13.5547,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[6] =	AddStaticVehicleEx(448,2118.5059,-1788.1840,13.5547,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[7] =	AddStaticVehicleEx(448,2120.3049,-1788.1200,13.5547,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[8] =	AddStaticVehicleEx(448,2122.2964,-1788.1726,13.5547,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[9] =	AddStaticVehicleEx(448,2103.6921,-1788.2153,13.5547,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[10] =	AddStaticVehicleEx(448,-1713.02709961,1367.94238281,6.85771942,45.00000000,3,6,300); //Pizzaboy
	PizzaVehicles[11] =	AddStaticVehicleEx(448,-1713.83740234,1367.19580078,6.85771942,45.00000000,3,6,300); //Pizzaboy
i hope anyone can help me with this problem.
Reply
#2

Give me the Stock and Function of PizzaVehicles and iwill solve it , i think the problem is on the number of the vehicles you're adding ..
Reply
#3

Код:
stock IsAPizzaCar(carid)
{
	for (new v = 0; v < sizeof(PizzaVehicles); v++) {
	    if(carid == PizzaVehicles[v]) return 1;
	}
	return 0;
}
Код:
new PizzaVehicles[12];
Код:
    if(GetPVarType(playerid, "Pizza") && !(IsAPizzaCar(vehicleid)))
	{
	    new Float:slx, Float:sly, Float:slz;
		GetPlayerPos(playerid, slx, sly, slz);
		SetPlayerPos(playerid, slx, sly, slz+1.3);
		PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
		RemovePlayerFromVehicle(playerid);
		defer NOPCheck(playerid);
		SendClientMessageEx(playerid, COLOR_GRAD2, "You need to be in a Pizzaboy when delivering pizzas!");
		return 1;
	}
Код:
		else if(IsAPizzaCar(vehicleid))
		{
		    if(PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21)
		    {
			    new Float:slx, Float:sly, Float:slz;
				GetPlayerPos(playerid, slx, sly, slz);
				SetPlayerPos(playerid, slx, sly, slz+1.3);
				PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
			    RemovePlayerFromVehicle(playerid);
			    defer NOPCheck(playerid);
			    SendClientMessageEx(playerid, COLOR_GRAD2, "You are not a Pizza Boy!");
			}
		}
Reply
#4

Try to change that

PHP код:
stock IsAPizzaCar(carid)
{
    for (new 
vsizeof(PizzaVehicles); v++) {
        if(
carid == PizzaVehicles[v]) return 1;
    }
    return 
0;

and

PHP код:
new PizzaVehicles[11]; 
Reply
#5

Still the same warnings
Reply
#6

I still got the same warnings but if i go ingame the pizza bikes are on the place what i want to
Reply
#7

Anyone?
Reply
#8

Quote:
Originally Posted by kevin_1991
Посмотреть сообщение
I still got the same warnings but if i go ingame the pizza bikes are on the place what i want to

You still getting the same warnings ?
Reply
#9

Yes i still get the same warnings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)