my code is big?
#3

pawn Код:
if(!strcmp("/work", cmdtext, true))
{
    if (minfo[playerid][CheckpointID] != 0) return SendClientMessage(playerid, 0xFF0000AA, "you already have work");
    new pvehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid));
    if (pvehiclemodel == 403 || pvehiclemodel == 514 || pvehiclemodel == 515) else { return SendClientMessage(playerid, 0xFF0000AA, "you need truck and tailer to be able to work");}
    if(!IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, 0xFF0000AA, "This Mission Requres You To Have A Trailer Attached To Your Truck.");
    new string[128];
    new rand = random(sizeof(TruckingMissionRandom));
    CreatePlayerMission(playerid, TruckingMissionRandom[rand][UseTrailerCheck], TruckingMissionRandom[rand][MissionPay], TruckingMissionRandom[rand][loadx],TruckingMissionRandom[rand][loady], TruckingMissionRandom[rand][loadz],
    TruckingMissionRandom[rand][unloadx],TruckingMissionRandom[rand][unloady], TruckingMissionRandom[rand][unloadz]);
    format(string, sizeof(string), "You are doing mission: %s", TruckingMissionRandom[rand][MissionName]);
    SendClientMessage(playerid, 0x00FF00FF, string);
    return 1;
}
Reply


Messages In This Thread
my code is big? - by oOegyptOo - 22.11.2010, 21:38
Re: my code is big? - by FreshDoubleX - 22.11.2010, 21:40
Re: my code is big? - by The_Gangstas - 22.11.2010, 21:45
Re: my code is big? - by oOegyptOo - 22.11.2010, 21:46
Re: my code is big? - by oOegyptOo - 22.11.2010, 21:48
Re: my code is big? - by FreshDoubleX - 22.11.2010, 21:49
Re: my code is big? - by Steven82 - 22.11.2010, 22:15

Forum Jump:


Users browsing this thread: 1 Guest(s)