30.12.2014, 14:25
why?
a tag mismatch occurs when...
i dont see how the strlen solution would trigger that... enlighten me please 
totally wrong, just wrong.
this will throw error 33
the solution with strlen is also not the best (it works though)
what you should do is check if the 1st real element is already the end of the string (EOS)
np
a tag mismatch occurs when...
Quote:
Originally Posted by PAWNlang
-assigning to a tagged variable a value that is untagged or that has
a different tag -the expressions on either side of a binary operator have different tags - in a function call, passing an argument that is untagged or that has a different tag than what the function argument was defined with - indexing an array which requires a tagged index with no tag or a wrong tag name |

Quote:
You can use Strlen, but i suggest to you to use what Alvord said.
|
this will throw error 33
Quote:
error 033: array must be indexed... |
Quote:
Originally Posted by PAWNlang
An array as a whole cannot be used in a expression; you must
indicate an element of the array between square brackets |
what you should do is check if the 1st real element is already the end of the string (EOS)
pawn Код:
if(inputtext[0] == EOS) //some code here
