SA-MP Forums Archive
Pay help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pay help (/showthread.php?tid=187739)



Pay help - Airingas - 04.11.2010

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;
}


Re: Pay help - Camacorn - 04.11.2010

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


Re: Pay help - The_Moddler - 04.11.2010

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;
}