Pickup bug
#9

Quote:
Originally Posted by Louris
Посмотреть сообщение
PlayerInfo[playerid][pLvDovana] = true;
Do not post such huge stuff.

and btw THAT IS WHAT I AM SAYING

True = 1
False = 0
in the code it is checking if it is 0 (WHICH IS FALSE), then it executes the code or it sends the message you are getting..

to fix it use this
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
 if(PlayerInfo[playerid][pLvDovana] == true)
 {
  if(pickupid == dovana)
  {  
    GivePlayerMoney(playerid,1000);
    SendClientMessage(playerid, 0xDEEE20FF, "Sveikiname, prizas: 1000 LT.");
    PlayerInfo[playerid][pLvDovana] = true;
  }
 }
 else  
 {
  SendClientMessage(playerid, 0xDEEE20FF, "Jūs jau gavote priza!");
 }
 if(PlayerInfo[playerid][pVip] == 1)
 {
   if(pickupid == vipams)
   {
    GivePlayerWeapon(playerid, 31, 500);
    GivePlayerWeapon(playerid, 25, 500);
    SendClientMessage(playerid, 0xDEEE20FF, "Gavote VIP ginklus.");
    }
 }
 else
 {
    SendClientMessage(playerid, 0xDEEE20FF, "Jūs ne VIP");
 }
 return 1;
}
and PLEASE follow Lord's signature..maybe it can help control your temper

Quote:
Originally Posted by ******
Посмотреть сообщение
There are ways to highlight issues with includes and suggest improvements, and there are ways to just be mean to people. If you don't know the difference - don't reply, you'll just put people off posting who may turn out to be great coders!
Reply


Messages In This Thread
Pickup bug - by Louris - 09.12.2012, 07:16
Re: Pickup bug - by [HK]Ryder[AN] - 09.12.2012, 07:25
Re: Pickup bug - by Louris - 09.12.2012, 07:26
Re: Pickup bug - by Lordzy - 09.12.2012, 07:29
Re: Pickup bug - by Louris - 09.12.2012, 07:34
Re: Pickup bug - by [HK]Ryder[AN] - 09.12.2012, 07:36
Re: Pickup bug - by Louris - 09.12.2012, 07:40
Re: Pickup bug - by Louris - 09.12.2012, 08:26
Re: Pickup bug - by [HK]Ryder[AN] - 09.12.2012, 08:52
Re: Pickup bug - by Threshold - 09.12.2012, 09:42

Forum Jump:


Users browsing this thread: 2 Guest(s)