[HELP]Floatdiv & Floatadd (HELP-ME BEST SCRIPTERS =D)
#1

can someone help me with this? How to use floatdiv and floatadd?. Some good scripter, could you me explain? If possible give me an example. Do not send me a link to the wiki. Because it did not help me at nothing.

Please, help me!
Reply
#2

none of the major scripters can me explain?

******?,
luxurion?,
james_alex?,
seif?,
sandra?,
kye?,
backwardsman97?,
zezombia?,
raf?
lethal?,
zeruel_angel?,
mikep?


the best scripters can not know me explain? (sorry, for double post)
Reply
#3

https://sampwiki.blast.hk/wiki/Scripting...s_Old#floatadd
https://sampwiki.blast.hk/wiki/Scripting...s_Old#floatdiv
Reply
#4

lol what part do you not understand O.o
ive only used this a couple of times

im not sure what you could exactly use floatadd for , but heres an example
Код:
new Float:totalpos = floatadd(25.100, 62.124);
this will make
totalpos equal 87.224

floatdiv. Im going to use KDR(kill death ratio) as an example for this
Код:
dcmd_kdr(playerid, params[]) {
#pragma unused params
new Float:KillDeath = floatdiv(kills[playerid], deaths[playerid]);
new str[128]; format(str, sizeof(str), "Your kdr is %0.2f", KillDeath);
return SendClientMessage(playerid, your_color, str);
}
that will calculate the kill death ratio of the player by dividing the kills by the deaths and returning it rounded to 2 decimal points ( as done in most fps games)
Reply
#5

thats like only getting back all the elementary school time XD
so dude just watch the wiki then u should understand it
its really just usual elementary schoolcalculating
Reply
#6

thanks for explication! I did not understand = (
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)