18.04.2010, 17:42
Hello, I made a new command /bizmoney but at compiling it compiles but I have one warning. How I solve this warning?
and
And the problem is at the line "BizCash[playerid] == 0" error: warning 215: expression has no effect
HELP ME PLEASE
Код:
forward ResetBizCash(playerid);
Код:
new BizCash[MAX_PLAYERS];
Код:
OnPlayerCommandText
Код:
if(strcmp(cmd, "/bizmoney", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBizOwn] < 1)
{
if(BizCash[playerid] == 0)
{
GivePlayerMoney(playerid, 500000);
SendClientMessage(playerid, COLOR_GREEN, "You got 500.000$ from The State!");
}
if(BizCash[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREEN, "You can get your Business money tomorrow!");
SetTimerEx("ResetBizCash", 86400000, 0, "d", playerid);
}
}
}
return 1;
}
Код:
public ResetBizCash(playerid)
{
BizCash[playerid] == 0;
}
HELP ME PLEASE


Does somebody know how to make a command that if a Biz owner types /bizmoney or something he get the amount of money defined and can use that command only after 1 day.