Float multiplying
#1

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);
	}
}
Reply
#2

pawn Код:
new Float:bank;
new Float:interest;
Reply
#3

in samp float is with upper case F
Reply
#4

Ahh cheers for that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)