Something wrong with my mission script.
#6

You've got a capital letter at the start of 'stock'

pawn Код:
Stock StartWorking(playerid) //change the uppercase S to a lowercase.
{
    if (Working[playerid] == 1) return SendClientMessage(playerid, 0xFF0000AA, "Your already on a route, so we cannot give you a new one!");
    new ID = random(sizeof(MissionData));
    new VehModel = GetVehicleModel(GetPlayerVehicleID(playerid));
    if(VehModel == 403 || VehModel == 514 || VehModel == 515)
    {
        if(MissionData[ID][Type] != 1) return StartWorking(playerid);
    }
    Working[playerid] = 1;
    PlayerMissionData[playerid][Pay] = MissionData[ID][Pay];
    return 1;
}
Yes, I tried placing an uppercase letter at the start of Stock in my script and it also crashed me. So it should solve your problem (hopefully).
Reply


Messages In This Thread
Something wrong with my mission script. - by Rokzlive - 24.01.2012, 01:24
Re: Something wrong with my mission script. - by MP2 - 24.01.2012, 07:21
Re: Something wrong with my mission script. - by Chris White - 24.01.2012, 07:41
Re: Something wrong with my mission script. - by [HK]Ryder[AN] - 24.01.2012, 07:42
Re: Something wrong with my mission script. - by Chris White - 24.01.2012, 07:44
Re: Something wrong with my mission script. - by Haydz - 24.01.2012, 07:44
Re: Something wrong with my mission script. - by [HK]Ryder[AN] - 24.01.2012, 07:46
Re: Something wrong with my mission script. - by Chris White - 24.01.2012, 07:47
Re: Something wrong with my mission script. - by MP2 - 24.01.2012, 08:02
Re: Something wrong with my mission script. - by Rokzlive - 24.01.2012, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)