AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Request | Convert Float to regular number (https://forums.alliedmods.net/showthread.php?t=162569)

Lolz123 07-20-2011 15:06

Request | Convert Float to regular number
 
i need function or way to convert a float to a regular number.
Example :
PHP Code:

#include <amxmodx>


public plugin_init()
{
    
register_clcmd("say /1""Try");
}

public Try(
id)
{
    new 
Float:Num1 5.0
    
new Num2 Num1;
    
    
client_print(idprint_chat"%d"Num2);



Exolent[jNr] 07-20-2011 15:09

Re: Request | Convert Float to regular number
 
floatround()

Lolz123 07-20-2011 15:11

Re: Request | Convert Float to regular number
 
thx Exolent ^^


All times are GMT -4. The time now is 00:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.