SA-MP Forums Archive
Float multiplying - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Float multiplying (/showthread.php?tid=253901)



Float multiplying - Hobod - 08.05.2011

I've tried this using just normal integers as well as floats but i always end up with a tag mismatch.
Can anyone please tell me whats wrong with this?
Код:
  	
for(new i = 0; i < MAX_PLAYERS; i++)
 {
    	if(IsPlayerConnected(i))
    	{
  	  	SendClientMessage(i, sexyblue, "______|- Payday -|______");
  	  	SendFMessage(i, white, "Old balance: $%d", GetPVarInt(i, "bank"));
  	  	SendClientMessage(i, white, "------------------------");
  	  	new money;
  	  	new float:bank;
  	  	new float:interest;
		money = GetPVarInt(i, "bank");
		bank = float(money);
    		interest = floatmul(bank, 0.1);
  	  	SendFMessage(i, white, "Interest: $%f", interest);
	}
}



Re: Float multiplying - MadeMan - 08.05.2011

pawn Код:
new Float:bank;
new Float:interest;



Re: Float multiplying - DRIFT_HUNTER - 08.05.2011

in samp float is with upper case F


Re: Float multiplying - Hobod - 08.05.2011

Ahh cheers for that