09.11.2011, 05:11
Quote:
I'm still wondering why you write "sz" before every variable/array you make.
Nice functions, however. |
szTest[] = string, zero-terminated (all strings in PAWN are what's called zero-terminated, i.e. the text ends at the first 0 in that array).
fTest = float
iTest = integer
Also, RyDeR`, you should make sure the length of the 2nd dimension in the output for your explode function has boundary checks. Right now this will cause strange behavior:
pawn Код:
new
szStr[] = "This-is-a-test-stringgggggg-!",
szOutput[6][7] // We have 6 string parts and the biggest length is 7
;
strExplode(szStr, "-", szOutput);