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
#2

SendClientMessage(playerid, COLOR_GREEN, str2); :3
+Rep
Reply
#3

Oh fuck.. Such an idiot i'm. I edited two strings and forgot to do this shit.
Thanks anyways..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)