Problem! +REP
#1

If I am in the game and I buy a car, and after use /veh displays the message: "You not a vehicle!".
But if I restart the server, command /veh works!
Код HTML:
CMD:veh(playerid, params [])
{
    new bool:found = false, msg[256], lst[19];
    for(new i = 0; i < sizeof(Veh); i++)
    {
        if(Veh[i][Owner] == pInfo[playerid][pID])
        {
            found = true;
            format(msg, sizeof(msg), "%s\n%s\t%s\t%s", msg, VehicleNames[GetVehicleModel(Veh[i][ServerID])-400], lst, Veh[i][Plate]);
        }
    }
    if(found) { ShowPlayerDialog(playerid, DIALOG_VEH, DIALOG_STYLE_TABLIST_HEADERS, "My Vehicles", msg, "Select", "Cancel"); }
    else { SendClientMessage(playerid, COLOR_DARKGRAY, "You not a vehicle!"); }
    return 1;
}
Reply


Messages In This Thread
Problem! +REP - by norton2 - 19.09.2015, 16:31
Re: Problem! +REP - by X337 - 19.09.2015, 16:54
Re: Problem! +REP - by norton2 - 19.09.2015, 16:58
Re: Problem! +REP - by norton2 - 20.09.2015, 06:10

Forum Jump:


Users browsing this thread: 3 Guest(s)