"Warning 209: function "CreateDynamicVehicle" should return a value."
#3

Quote:
Originally Posted by SmiT
Посмотреть сообщение
pawn Код:
stock CreateDynamicVehicle(playerid,modelid,type,color)
{
    new Float:x, Float:y, Float:z, Float:angle;
    for(new i = 0; i < sizeof(VehicleInfo); i++)
    {
        if(VehicleInfo[i][vOwned] == 0)
        {
            GetPlayerPos(playerid,x,y,z);
            GetPlayerFacingAngle(playerid,angle);
            SendClientMessage(playerid,COLOR_WHITE,"vehicle created");
            SendClientMessage(playerid,COLOR_WHITE,"dont forget /editveh.");
            VehicleInfo[i][vOwned] = 1;
            VehicleInfo[i][vModel] = modelid;
            VehicleInfo[i][vType] = type;
            VehicleInfo[i][vColorOne] = color;
            VehicleInfo[i][vColorTwo] = 0;
            VehicleInfo[i][vX] = x;
            VehicleInfo[i][vY] = y;
            VehicleInfo[i][vZ] = z;
            VehicleInfo[i][vAngle] = angle;
            return 1;
        }
    }
    return true;
 }
thanks worked +1
Reply


Messages In This Thread
"Warning 209: function "CreateDynamicVehicle" should return a value." - by rati555 - 06.11.2011, 18:11
Re: "Warning 209: function "CreateDynamicVehicle" should return a value." - by SmiT - 06.11.2011, 18:14
Re: "Warning 209: function "CreateDynamicVehicle" should return a value." - by rati555 - 06.11.2011, 18:18

Forum Jump:


Users browsing this thread: 2 Guest(s)