Raised This Month: $ Target: $400
 0% 

Is it possible to show integer from string?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-23-2014 , 12:20   Re: It is possible to show integer from string?
Reply With Quote #9

I have tested the code and it is working fine. Below is test code:
PHP Code:
#include <amxmodx>

new const str[] = "%i text %i text %i text %i text";
new 
integer1 1
new integer2 2
new integer3 3
new integer4 4

new text[101]

public 
plugin_init()
{
    
register_plugin("Test""1.0""zmd94")
    
    
register_clcmd("say /test""clcmd_test")
    
    
formatex(textcharsmax(text), strinteger1integer2integer3integer4
}

public 
clcmd_test(id)
{
    
client_print(idprint_chat"%s"text)

zmd94 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:17.


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