Message doesn't send after pickup - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Message doesn't send after pickup (
/showthread.php?tid=526973)
Message doesn't send after pickup -
biker122 - 20.07.2014
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..
Re: Message doesn't send after pickup -
GeekSiMo - 20.07.2014
SendClientMessage(playerid, COLOR_GREEN, str2); :3
+Rep
Re: Message doesn't send after pickup -
biker122 - 20.07.2014
Oh fuck.. Such an idiot i'm. I edited two strings and forgot to do this shit.
Thanks anyways..