Message doesn't send after pickup
#1

So, this is my code in OnPlayerPickUpDynamicPickup callback.
pawn Код:
for(new p = 0; p <= 11; p++)
    {
        if(pickupid == Pickups[p])
        {
            new rand = random(30), str2[128], Float:Health;
            GetPlayerHealth(playerid, Health);
            format(str2, sizeof (str2), "You've done a great job! You found an hidden pickup and earned %i health! [Health LEFT: %i]", rand, floatround(Health));
            SendClientMessage(playerid, COLOR_GREEN, str);
            SetPlayerHealth(playerid, Health + rand);
        }
    }
If I enter those pickups, It's just sending a blank message; i.e. ""
I tried to return it and do stuffs, but it's remaining like the same..
Reply


Messages In This Thread
Message doesn't send after pickup - by biker122 - 20.07.2014, 09:35
Re: Message doesn't send after pickup - by GeekSiMo - 20.07.2014, 09:40
Re: Message doesn't send after pickup - by biker122 - 20.07.2014, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)