Home
Register
FAQ
Search
Login




Reply to topic  [ 1 post ] 
Help to define some functions 
Author Message
Membru

User avatar
Grup: Membru
Joined: Sat Apr 12, 2008 2:44
Posts: 16
Location: Ugljevik
A multumit de : 0 ori
Multumiri primite : 0
Timp Conectat: 0s
Post Help to define some functions
Hello,

I found this code in pawn and I need this to work within amxx but I dont know how to write a function.

Code:
strmid - Extract a range of characters from a string
Syntax: strmid(dest[], const source[], start=0, end=cellmax, maxlength=sizeof dest)

dest The string to store the extracted characters in.
source The string from which to extract characters.
start The parameter start must point at the first character to extract (starting at zero).
end The parameter end must point behind the last character to extract.
maxlength If the length of dest would exceed maxlength cells, the result is truncated to maxlength cells.

Returns: The number of characters stored in dest.



strval - Convert from text (string) to numbers
Syntax: strval(const string[], index=0)

string The string containing a number in characters. This may be either a packed or unpacked string.
index The position in the string where to start looking for a number. This parameter allows to skip an initial part of a string, and extract numbers from the middle of a string.

Returns: The value in the string, or zero if the string did not start with a
valid number (starting at index).


And if it can't be done, is there a way to use some amxx functions instead of these ?


Fri Feb 12, 2010 1:51
Profile E-mail
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Structura temei creată de Happy si modificată de Jay
Propulsat de phpBB © 2000, 2002, 2005, 2007 phpBB Group
cs-utilz.net & rLz.ro © 2007 - 2010



phpBB SEO