AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   question (https://forums.alliedmods.net/showthread.php?t=45495)

cx710v 10-03-2006 23:11

question
 
trash

Emp` 10-03-2006 23:38

Re: question
 
put
Code:

while(containi(text2,"rhksw")!=-1)
{
replace(text2,199,"rhksw", "BIG")
}

after the others. so it would be
Code:

while(containi(text2,"wk")!=-1)
{
replace(text2,199,"wk", "SMALL")
}
while(containi(text2,"rhks")!=-1)
{
replace(text2,199,"rhks", "LONG")
}
while(containi(text2,"rhksw")!=-1)
{
replace(text2,199,"rhksw", "BIG")
}

note: this will make it so BIG is never displayed.

Xanimos 10-04-2006 00:23

Re: question
 
ahem...
use

Code:
replace_all(text2,199,"wk", "SMALL") replace_all(text2,199,"rhks", "LONG") replace_all(text2,199,"rhksw", "BIG")

instead of
Code:
while(containi(text2,"rhksw")!=-1) { replace(text2,199,"rhksw", "BIG") } while(containi(text2,"wk")!=-1) { replace(text2,199,"wk", "SMALL") } while(containi(text2,"rhks")!=-1) { replace(text2,199,"rhks", "LONG") }

Greenberet 10-04-2006 07:38

Re: question
 
you made the same error again.
read my post in your other topic http://forums.alliedmods.net/showthread.php?t=45470


All times are GMT -4. The time now is 04:54.

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