20.04.2012, 19:54
Hello,i've a condoms shop and i've this option in the shop (dialogs)
A player bought 10 condoms pack and i need to increase the variable pCondoms by 10,but doesnt work.
Error "warning 215: expression has no effect" at
- Thanks.
pawn Код:
if(listitem == 0) //10 condoms pack
{
if(GetPlayerMoney(playerid) >= 5000) {
GivePlayerMoney(playerid,-5000);
SendClientMessage(playerid, green,"Bought 10 condoms pack");
PlayerInfo[playerid][pCondoms] +10;
}
else return SendClientMessage(playerid, red, "You can't afford 5000$ to buy 10 condoms pack.");
}
Error "warning 215: expression has no effect" at
pawn Код:
PlayerInfo[playerid][pCondoms] +10;