SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

str_to_float » AmxModX
| |
 RSS
  • OnLine

    : 9
    : 8
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 5-01-2012, 01:44 : 4061

    str_to_float

    str_to_float , , . , .

    string.inc:
    /* Parses a float. */
    native Float:str_to_float(const string[]);


    :
    Float: str_to_float ( const string[] )

    • const string[] -
    .

    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "[string.inc] str_to_float"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        //
        new text[10] = {"99.9"}
        
        //
        server_print("Float:%f String:%s",text,text)
        
        //
        new Float:fNum = str_to_float(text)

        //     
        server_print("Float:%.1f String:%s",fNum,fNum)
    }


    :
    str_to_num, ( ).
    , .
    , .
    .
    str_to_float