Float add - Help - 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: Float add - Help (
/showthread.php?tid=332535)
Float add - Help -
Andregood - 08.04.2012
Removed.
Re: Float add - Help -
Andregood - 09.04.2012
Bump
Re: Float add - Help -
Shabi RoxX - 09.04.2012
Try this:
pawn Код:
COMMAND:learnsniff(playerid, params[])
{
new Float:Sniff = 5;
if(gTeam[playerid] == 2)
{
if(PlayerInfo[playerid][pPoint] <= 1) return SendClientMessage(playerid, COLOR_RED, "You have no learning points");
else//forgot else
{
[pSniff] = floatadd(25.0 + PlayerInfo[playerid][pSniff])
}
}
return 1;
}
Re: Float add - Help -
Andregood - 09.04.2012
That did unfortunately not work I'm afraid, but it worked by doing
Код:
PlayerInfo[playerid][pSniff]++;