|
|
#3221 |
|
Little Clucker
![]() Join Date: Feb 2012
Posts: 44
Reputation: 3
|
I made my own version of sscanf aka 'UnParams'.
It's slow ![]() It's only test of my practice ![]() pawn Code:
|
|
|
|
|
|
#3222 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,280
Reputation: 1909
|
|
|
|
|
|
|
#3223 |
|
Little Clucker
![]() Join Date: Feb 2012
Posts: 44
Reputation: 3
|
Y_Less, i know, i don't know how to fix
it prints: 2123804658 fixed (uknown format) pawn Code:
|
|
|
|
|
|
#3224 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,280
Reputation: 1909
|
Actually, that wasn't even what I was getting at. strval used to crash on massive numbers (maybe it doesn't now, not sure), and the number I had there is longer that 35 characters, thus will give a buffer overflow (though you don't actually need a buffer).
|
|
|
|
|
|
#3225 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Location: Sweden
Posts: 1,667
Reputation: 969
|
strreplace - Replace occurrences of the search string with the replacement string.
You can see a demo & test the function here. pawn Code:
Examples: pawn Code:
|
|
|
|
|
|
#3226 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2010
Location: Australia
Posts: 4,006
Reputation: 832
|
Thanks Slice!
|
|
|
|
|
|
#3227 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2009
Location: The Netherlands
Posts: 2,818
Reputation: 707
|
Damn, thank you for that. (@Slice). Works perfect, and it's gonna be very usefull for my gamemode : ).
Just tested it, and it worked like.... a script that works good. pawn Code:
|
|
|
|
|
|
#3228 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2009
Location: Belgium
Posts: 3,075
Reputation: 572
|
strDelete(szStr[], ...) ─ Deletes sub-strings from a string in a very neat and fast way:
pawn Code:
pawn Code:
|
|
|
|
|
|
#3229 |
|
Little Clucker
![]() Join Date: Feb 2012
Posts: 44
Reputation: 3
|
My version of strDel
![]() pawn Code:
|
|
|
|
|
|
#3230 |
|
Little Clucker
![]() Join Date: Jan 2012
Posts: 24
Reputation: 1
|
pawn Code:
This function simply gets the nuber of the slots available on the server. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Functions? | sciman001 | Help Archive | 7 | 19/03/2011 02:03 PM |
| How to get functions? | Twain32 | Help Archive | 4 | 08/10/2010 07:37 PM |
| [Include] [INC] SA:MP New Functions 0.4a DKN | ipsBruno | Lançamentos/Releases | 22 | 17/06/2010 08:38 AM |
| [Include] [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) | Lorenc_ | Includes | 11 | 03/05/2010 09:47 PM |
| What this functions do? | harrold | Help Archive | 2 | 08/05/2009 11:30 PM |