Pay help
#1

what may be wrong here you can would help Thanks.

if(pickupid == pickups[0][Pay]){
new Hour,Minute,Second;
gettime(Hour,Minute,Second);
if(Hour > 20 && Hour > 22)
{
new msg[128];
format(msg,sizeof(msg),"Wages balance you have: %i $. Do you want to withdraw money?",PlayerInfo[playerid[PayH]);
ShowPlayerDialog(playerid,1111,DIALOG_STYLE_MSGBOX ,"Info",msg,"Takew","Close);
}
SendClientMessage(playerid,RED,"* Salaries can be picked up from 20h to 22h");
return 1;
}
Reply
#2

Tell us what it is doing wrong, then we can help you.
Reply
#3

pawn Код:
if(pickupid == pickups[0][Pay])
{
    new Hour, Minute, Second;
    gettime(Hour, Minute, Second);
    if(Hour > 16)
    {
        new msg[128];
        format(msg, 128, "Wages balance you have: %i $. Do you want to withdraw money?", PlayerInfo[playerid[PayH]);
        ShowPlayerDialog(playerid, 1111, DIALOG_STYLE_MSGBOX, "Info", msg, "Take", "Close");
    }
    else
    {
        SendClientMessage(playerid,RED,"* Salaries can be picked up from 20h to 22h");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)