Payment time
#1

Hello guys, I have with payment time. I want to make that for all players which are business owner received payment in setted time, but in my code is send to all player.
How to do, that paments received only business owner?

my business owner variable Houses[playerid][house_owner]

here's my trying but, as I say it's isn't work corectly.

forward PaymentsTime(playerid);
public PaymentsTime(playerid)
{
foreach(Player,i)
{
if(strcmp(PlayerName(i),Houses[i][house_owner]) == 1)
{
new a=Houses[i][house_owner];

SendClientMessage(a,-1,"payments!");
}

}

return 1;
}

Thanks
Reply
#2

Any one ?!
Reply
#3

Reply
#4

pawn Код:
foreach(Player, i)
{
    if(Houses[i][ /* place the variable here to check if he owns a house */ ] == true)
    {
        SendClientMessage(i, -1, "Payments!");
        GivePlayerMoney(i, [money here]);
    }
}
Reply
#5

Hmm same sh^^ can you suggest another way
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)