auto work not working
#1

i been asking my friends still cant seem to find a solution to this auto work gives you a new mission with out /work when its enabled it don't work
pawn Код:
if(dialogid == settings8)
    {
        if(response)
        {
            new msg[128];
            format(msg,sizeof(msg),"You have updated your auto work settings.");
            PlayerPlaySound(playerid, 1138, 0, 0, 0);
            switch(listitem)
            {
                case 0: //Enable
                {
                    PInfo[playerid][sAutoWork] = 1;
                    SendClientMessage(playerid, COLOR_IRC, msg);
                    ShowPlayerSettings(playerid);
                    return 1;
                }
                case 1: //Disable
                {
                    PInfo[playerid][sAutoWork] = 0;
                    SendClientMessage(playerid, COLOR_IRC, msg);
                    ShowPlayerSettings(playerid);
                    return 1;
                }
            }
        }
    }
Reply
#2

What errors you do get? Please post the errors.
Reply
#3

Dependsd how your "work" is.

If it done via checkpoints, on your last checkpoint you can do something among the lines of

pawn Код:
if(PInfo[playerid][sAutoWork] == 1)
{
Restart first checkpoint
}
else [if(PInfo[playerid][sAutoWork] == 0)
{
End checkpoints and finish work
}

P.S the text in [] is optional.
Reply
#4

Quote:
Originally Posted by Geeboi_Mehdi
Посмотреть сообщение
i been asking my friends still cant seem to find a solution to this auto work gives you a new mission with out /work when its enabled it don't work
pawn Код:
if(dialogid == settings8)
    {
        if(response)
        {
            new msg[128];
            format(msg,sizeof(msg),"You have updated your auto work settings.");
            PlayerPlaySound(playerid, 1138, 0, 0, 0);
            switch(listitem)
            {
                case 0: //Enable
                {
                    PInfo[playerid][sAutoWork] = 1;
                    SendClientMessage(playerid, COLOR_IRC, msg);
                    ShowPlayerSettings(playerid);
                    return 1;
                }
                case 1: //Disable
                {
                    PInfo[playerid][sAutoWork] = 0;
                    SendClientMessage(playerid, COLOR_IRC, msg);
                    ShowPlayerSettings(playerid);
                    return 1;
                }
            }
        }
    }
I'm having the same issue in my server, the autowork doesn't actually work. I'm using the same code as above, and I haven't been able to figure it out. Anybody have any solutions??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)