Raised This Month: $ Target: $400
 0% 

while i++ == containi[i] problem, i need to skip letters ( fixed)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 04-10-2009 , 08:22   while i++ == containi[i] problem, i need to skip letters ( fixed)
Reply With Quote #1

PHP Code:
new said[6], 0
    read_argv
(1said5)
    
    while (
containi(said[i], "> !") != -1)
    {
        
i++
    }
    
    while (
said[i] == '!')
    {
        
i++
    } 
hi, i'm trying to modify admin chat, so when admin types !hi it will make a hud message like @hi, but also i want to make a hud message appear he admin types > !hi
and this part i can't get to work, when admin types > !hi nothing happens, it just shows in chat like usual

and i tried
PHP Code:
if (containi(said"> !") != -1)
    {
        
i++
        
log_amx("> ! Found!")
    } 
but when admin typed > !hi
nothing it didn't found it )= no amx log was made

and if i do while (containi(said[i], "!") != -1) it works only for first characters, i want to make string like "> !hi" make an hud chat like @hi and "> !!hi" make it like @@hi
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 04-10-2009 at 08:37.
Owyn is offline
Send a message via ICQ to Owyn
 



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 20:38.


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