AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I have a Doubt (https://forums.alliedmods.net/showthread.php?t=112756)

Kiske 12-20-2009 23:47

I have a Doubt
 
Sorry for my English.

I need to detect if the player has 4 or more numbers together, and add a "."

Here I leave an Image.
The "." mark it with BLUE

[IMG]http://img42.**************/img42/4176/123xtt.jpg[/IMG]

ConnorMcLeod 12-21-2009 00:55

Re: I have a Doubt
 
You mean if the player name is an ip ? if the player write some ip in chat ?
Such plugins already exist.

Kiske 12-21-2009 01:02

Re: I have a Doubt
 
I want a message that says this:

Life: %d, get_user_health(id)

If you have 3000 life, I want the message read:
Life: 3,000

There is a Code for that?

01101101 12-21-2009 03:49

Re: I have a Doubt
 
Quote:

Originally Posted by Kiske (Post 1025023)
I want a message that says this:

Life: %d, get_user_health(id)

If you have 3000 life, I want the message read:
Life: 3,000

There is a Code for that?

I had given a code for that a long time ago... Its just a for function which adds a dot for every 3 characters in a string. You could do it by yourself, add function will be useful.

By the way, "Hiciste" goes with 'c', thats an epic spelling mistake.


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

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