Warning
#1

Код HTML:
E:\GTA\samp03csvr_R2-2_win32\filterscripts\Vehicle+.pwn(135) : warning 202: number of arguments does not match definition
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(126) : warning 204: symbol is assigned a value that is never used: "vehicleid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Warnings.
Reply
#2

Show the code please.
Else we can't help you.
Reply
#3

Код HTML:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new vehicleid = GetPlayerVehicleID(playerid);
if(dialogid == DIALOG+1)
{
if(response)
{
if(listitem == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 598)
{
CreateVehicleObject(1171,GetPlayerVehicleID(playerid),-1.039999, 1.969998, 0.230000, 0.000000, 0.000000, 0.000000);
CreateVehicleObject(1115,GetPlayerVehicleID(playerid),-0.020000, 2.749997, -0.280000, 0.000000, 0.000000, 0.000000);
CreateVehicleObject(1111,GetPlayerVehicleID(playerid),-0.000000, 2.529998, 0.230000, 0.000000, 0.000000, 0.000000);
CreateVehicleObject(1153,GetPlayerVehicleID(playerid),0.929999, 2.149998, 0.200000, 0.000000, 0.000000, 0.000000);
CreateVehicleObject(1156,GetPlayerVehicleID(playerid),1.099999, -1.969998, -0.079999, 0.000000, 0.000000, 0.000000);
}}}}
return 1;
}
Reply
#4

show CreateVehicleObject function please
Reply
#5

Код HTML:
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
#6

This should work then:
(You forgot the distance to show, I set it to 1000.)

+ Fixed the indention
+ The vehicleid is now used.
pawn Код:
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(1171,vehicleid,-1.039999, 1.969998, 0.230000, 0.000000, 0.000000, 0.000000, 1000.0);
                    CreateVehicleObject(1115,vehicleid,-0.020000, 2.749997, -0.280000, 0.000000, 0.000000, 0.000000, 1000.0);
                    CreateVehicleObject(1111,vehicleid,-0.000000, 2.529998, 0.230000, 0.000000, 0.000000, 0.000000, 1000.0);
                    CreateVehicleObject(1153,vehicleid,0.929999, 2.149998, 0.200000, 0.000000, 0.000000, 0.000000, 1000.0);
                    CreateVehicleObject(1156,vehicleid,1.099999, -1.969998, -0.079999, 0.000000, 0.000000, 0.000000, 1000.0);
                }
            }
        }
    }
    return 1;
}

Jeffry
Reply
#7

Thank you very much )
Reply
#8

Quote:
Originally Posted by hillko
Посмотреть сообщение
Thank you very much )
No problem. Have fun.
Reply
#9

How do those object with which you helped me, so I went to the car and did not enter a team is not about the appearance of an object.
Then those objects without having to appear not a team.
Reply
#10

Quote:
Originally Posted by hillko
Посмотреть сообщение
How do those object with which you helped me, so I went to the car and did not enter a team is not about the appearance of an object.
Then those objects without having to appear not a team.
What do you mean by that.
I didn't understand your PM either, which was the same.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)