SA-MP Forums Archive
One easy question - 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: One easy question (/showthread.php?tid=136558)



One easy question - Peep - 25.03.2010

i have a code new cashmade = PlayerInfo[playerid][pFishLoads]*6; .
It multiply with 6 , but i like to make that it multiply with 6.25 . I tryed to put * 6.25 , 6,25 ,but then pawno shows just a error .
Mabye anyone can help ?


Re: One easy question - Peep - 26.03.2010

Really anyone dont know how to get it work ?


Re: One easy question - Correlli - 26.03.2010

cashmade variable needs to be a float type, you need to put the float tag before it.


Re: One easy question - Peep - 26.03.2010

Thanx for answering , but something i still wrong . Pawno still shows same error if i do like this
Код:
new Float:cashmade = PlayerInfo[playerid][pFishLoads]*6.25;
Error : (4849 : warning 213: tag mismatch


Re: One easy question - Peep - 27.03.2010

bump


Re: One easy question - Finn - 27.03.2010

new Float:cashmade = (float(PlayerInfo[playerid][pFishLoads]) * 6.25);


Re: One easy question - Peep - 27.03.2010

Quote:
Originally Posted by Finn
new Float:cashmade = (float(PlayerInfo[playerid][pFishLoads]) * 6.25);
still same error : Error : (4849 : warning 213: tag mismatch


Re: One easy question - Jay420 - 28.03.2010

How about

pawn Код:
new Float:cashmade = PlayerInfo[playerid][pFishLoads]*25/4;




Re: One easy question - spaceflame784 - 28.03.2010

Quote:
Originally Posted by Jay420
How about

pawn Код:
new Float:cashmade = PlayerInfo[playerid][pFishLoads]*25/4;

Jay420 Please PM me your MSN.


Re: One easy question - Peep - 28.03.2010

Quote:
Originally Posted by spaceflame784
Quote:
Originally Posted by Jay420
How about

pawn Код:
new Float:cashmade = PlayerInfo[playerid][pFishLoads]*25/4;

Jay420 Please PM me your MSN.
Still same error , i dont understand what is wrong