40 Warnings
#1

HTML Code:
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(136) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(137) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(138) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(139) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(140) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(141) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(142) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(143) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(144) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(145) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(146) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(147) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(148) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(149) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(150) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(151) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(152) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(153) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(154) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(155) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(156) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(157) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(158) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(159) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(160) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(161) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(162) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(163) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(164) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(165) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(166) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(167) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(168) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(169) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(170) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(171) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(172) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(173) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(174) : warning 202: number of arguments does not match definition
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle.pwn(175) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


40 Warnings.
HTML Code:
                    CreateVehicleObject(1141,vehicleid,-1.049999,-2.149998,-0.089999,0.000000,0.000000,1000.0);
CreateVehicleObject(1140,vehicleid,-1.049999,-2.079998,0.190000,0.000000,0.000000,1000.0);
CreateVehicleObject(1171,vehicleid,-1.019999,1.859998,0.060000,0.000000,0.000000,1000.0);
CreateVehicleObject(1172,vehicleid,-1.009999,1.849998,0.200000,0.000000,0.000000,1000.0);
CreateVehicleObject(1115,vehicleid,0.009999,2.679997,-0.469999,0.000000,0.000000,1000.0);
CreateVehicleObject(1116,vehicleid,0.009999,2.629997,-0.259999,0.000000,0.000000,1000.0);
CreateVehicleObject(1122,vehicleid,-1.119999,-0.170000,0.040000,0.000000,0.000000,1000.0);
CreateVehicleObject(1122,vehicleid,1.129999,-0.200000,0.020000,0.000000,0.000000,1000.0);
CreateVehicleObject(1088,vehicleid,-0.010000,0.169999,0.869999,0.000000,0.000000,1000.0);
CreateVehicleObject(1145,vehicleid,0.749999,1.859998,0.310000,0.000000,0.000000,1000.0);
CreateVehicleObject(1145,vehicleid,-0.739999,1.859998,0.310000,0.000000,0.000000,1000.0);
CreateVehicleObject(1143,vehicleid,-0.230000,1.319998,0.350000,0.000000,0.000000,1000.0);
CreateVehicleObject(1143,vehicleid,0.189999,1.319998,0.350000,0.000000,0.000000,1000.0);
CreateVehicleObject(1142,vehicleid,-0.030000,1.319998,0.350000,0.000000,0.000000,1000.0);
CreateVehicleObject(1034,vehicleid,0.109999,-0.729999,-0.029999,0.000000,0.000000,1000.0);
CreateVehicleObject(1034,vehicleid,-0.070000,-0.729999,-0.029999,0.000000,0.000000,1000.0);
CreateVehicleObject(1034,vehicleid,-0.070000,-0.729999,0.140000,0.000000,0.000000,1000.0);
CreateVehicleObject(1034,vehicleid,0.099999,-0.739999,0.140000,0.000000,0.000000,1000.0);
CreateVehicleObject(1005,vehicleid,-0.010000,1.609998,0.320000,0.000000,0.000000,1000.0);
CreateVehicleObject(1109,vehicleid,-0.010000,-2.609997,0.120000,0.000000,0.000000,1000.0);
CreateVehicleObject(1185,vehicleid,1.019999,2.419997,0.060000,0.000000,0.000000,1000.0);
CreateVehicleObject(1139,vehicleid,-0.010000,-2.709997,0.270000,0.000000,0.000000,1000.0);
CreateVehicleObject(1139,vehicleid,-0.010000,-2.909997,0.429999,0.000000,0.000000,1000.0);
CreateVehicleObject(362,vehicleid,0.949999,1.849998,0.150000,-95.000000,-60.000000,1000.0);
CreateVehicleObject(2985,vehicleid,0.019999,2.079998,-0.569999,0.000000,0.000000,91000.0);
CreateVehicleObject(362,vehicleid,-0.969999,1.879998,0.070000,85.000000,15.000000,105.000000);
CreateVehicleObject(3280,vehicleid,-0.019999,-0.260000,0.190000,90.000000,-75.000000,75.000000);
CreateVehicleObject(18646,vehicleid,-0.019999,-0.020000,0.990000,-360.000000,0.000000,75.000000);
CreateVehicleObject(1115,vehicleid,1.190000,-1.660000,-0.479999,-700.000000,360.000000,270.000000);
CreateVehicleObject(1115,vehicleid,-1.199999,-1.670000,-0.479999,-700.000000,360.000000,90.000000);
CreateVehicleObject(1116,vehicleid,0.000000,-2.940000,-0.279999,-700.000000,360.000000,180.000000);
CreateVehicleObject(1036,vehicleid,-1.009998,-0.130002,-0.519999,-360.000000,255.000000,180.000000);
CreateVehicleObject(1036,vehicleid,1.040002,-0.130002,-0.549999,-360.000000,260.000000,360.000000);
CreateVehicleObject(1098,vehicleid,0.970002,-1.660001,-0.429999,-360.000000,180.000000,180.000000);
CreateVehicleObject(1098,vehicleid,-0.949998,-1.640001,-0.429999,-360.000000,180.000000,1000.0);
CreateVehicleObject(18647,vehicleid,-0.999998,-0.140001,-0.429999,-360.000000,180.000000,1000.0);
CreateVehicleObject(18647,vehicleid,1.070000,-0.140001,-0.429999,-360.000000,180.000000,1000.0);
CreateVehicleObject(18693,vehicleid,0.490001,-3.240000,1.330000,-360.000000,180.000000,1000.0);
CreateVehicleObject(18693,vehicleid,-0.449997,-3.240000,1.330000,-360.000000,180.000000,1000.0);
CreateVehicleObject(18699,vehicleid,0.000002,3.019998,2.140000,-360.000000,180.000000,1000.0);
help please
Reply
#2

Can you show us your CreateVehicleObject stock?
Reply
#3

the function ?
post here
pawn Code:
CreateVehicleObject
Reply
#4

HTML Code:
public CreateVehicleObject(modelid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:stream_distance)
{
	if (vehicleid == 0 || vehicleid == INVALID_VEHICLE_ID || modelid ==0) return 0;
	new id;
	for (new i=1; i < MAX_VEHICLE_OBJECTS; i++) if (objects[i][object_modelid] == 0)
	{
	    id = i;
	    break;
	}
	if (id == 0) return 0;

	objects[id][object_x]    		= fOffsetX;
	objects[id][object_y]    		= fOffsetY;
	objects[id][object_z]    		= fOffsetZ;
	objects[id][object_rx]    		= fRotX;
	objects[id][object_ry]    		= fRotY;
	objects[id][object_rz]    		= fRotZ;
	objects[id][object_distance]    = stream_distance;
	objects[id][object_vehicleid] 	= vehicleid;
	objects[id][object_objectid] 	= 0;
	objects[id][object_modelid] 	= modelid;
	return id;
}
Reply
#5

You have 9 parameters in the stock, yet you only use 8 in OnGameModeInit.

This is what causes your warnings.
Reply
#6

If your trying to add a vehicle do
pawn Code:
AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);
Sorry if that didn't help but i thought thats what u were trying to do because i never heard of CreateVehicleObject
Reply
#7

Quote:
Originally Posted by Aleks1337
View Post
If your trying to add a vehicle do
pawn Code:
AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);
Sorry if that didn't help but i thought thats what u were trying to do because i never heard of CreateVehicleObject
He has too many parameters, thats in the stock, theres a limit for OnGameModeInt
Reply
#8

Quote:
Originally Posted by Aleks1337
View Post
If your trying to add a vehicle do
pawn Code:
AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);
Sorry if that didn't help but i thought thats what u were trying to do because i never heard of CreateVehicleObject
HTML Code:
I can not add a vehicle , and add a component object
Reply
#9

HTML Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(dialogid == DIALOG+1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                if(GetVehicleModel(vehicleid) == 598)
                {     
					CreateVehicleObject(1141,vehicleid,-1.049999,-2.149998,-0.089999,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1140,vehicleid,-1.049999,-2.079998,0.190000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1171,vehicleid,-1.019999,1.859998,0.060000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1172,vehicleid,-1.009999,1.849998,0.200000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1115,vehicleid,0.009999,2.679997,-0.469999,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1116,vehicleid,0.009999,2.629997,-0.259999,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1122,vehicleid,-1.119999,-0.170000,0.040000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1122,vehicleid,1.129999,-0.200000,0.020000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1088,vehicleid,-0.010000,0.169999,0.869999,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1145,vehicleid,0.749999,1.859998,0.310000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1145,vehicleid,-0.739999,1.859998,0.310000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1143,vehicleid,-0.230000,1.319998,0.350000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1143,vehicleid,0.189999,1.319998,0.350000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1142,vehicleid,-0.030000,1.319998,0.350000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1034,vehicleid,0.109999,-0.729999,-0.029999,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1034,vehicleid,-0.070000,-0.729999,-0.029999,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1034,vehicleid,-0.070000,-0.729999,0.140000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1034,vehicleid,0.099999,-0.739999,0.140000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1005,vehicleid,-0.010000,1.609998,0.320000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1109,vehicleid,-0.010000,-2.609997,0.120000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1185,vehicleid,1.019999,2.419997,0.060000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1139,vehicleid,-0.010000,-2.709997,0.270000,0.000000,0.000000,1000.0);
                    CreateVehicleObject(1139,vehicleid,-0.010000,-2.909997,0.429999,0.000000,0.000000,1000.0);
                    CreateVehicleObject(362,vehicleid,0.949999,1.849998,0.150000,-95.000000,-60.000000,1000.0);
                    CreateVehicleObject(2985,vehicleid,0.019999,2.079998,-0.569999,0.000000,0.000000,91000.0);
                    CreateVehicleObject(362,vehicleid,-0.969999,1.879998,0.070000,85.000000,15.000000,105.000000);
                    CreateVehicleObject(3280,vehicleid,-0.019999,-0.260000,0.190000,90.000000,-75.000000,75.000000);
                    CreateVehicleObject(18646,vehicleid,-0.019999,-0.020000,0.990000,-360.000000,0.000000,75.000000);
                    CreateVehicleObject(1115,vehicleid,1.190000,-1.660000,-0.479999,-700.000000,360.000000,270.000000);
                    CreateVehicleObject(1115,vehicleid,-1.199999,-1.670000,-0.479999,-700.000000,360.000000,90.000000);
                    CreateVehicleObject(1116,vehicleid,0.000000,-2.940000,-0.279999,-700.000000,360.000000,180.000000);
                    CreateVehicleObject(1036,vehicleid,-1.009998,-0.130002,-0.519999,-360.000000,255.000000,180.000000);
                    CreateVehicleObject(1036,vehicleid,1.040002,-0.130002,-0.549999,-360.000000,260.000000,360.000000);
                    CreateVehicleObject(1098,vehicleid,0.970002,-1.660001,-0.429999,-360.000000,180.000000,180.000000);
                    CreateVehicleObject(1098,vehicleid,-0.949998,-1.640001,-0.429999,-360.000000,180.000000,1000.0);
                    CreateVehicleObject(18647,vehicleid,-0.999998,-0.140001,-0.429999,-360.000000,180.000000,1000.0);
                    CreateVehicleObject(18647,vehicleid,1.070000,-0.140001,-0.429999,-360.000000,180.000000,1000.0);
                    CreateVehicleObject(18693,vehicleid,0.490001,-3.240000,1.330000,-360.000000,180.000000,1000.0);
                    CreateVehicleObject(18693,vehicleid,-0.449997,-3.240000,1.330000,-360.000000,180.000000,1000.0);
                    CreateVehicleObject(18699,vehicleid,0.000002,3.019998,2.140000,-360.000000,180.000000,1000.0);                             		                      
                }
            }
        }
    }
    return 1;
}
Reply
#10

?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)