ondialogresponse inputtext
#6

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
this is not good he will get tag mistakes warrning
why?
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
i dont see how the strlen solution would trigger that... enlighten me please


Quote:
Originally Posted by TheSnaKe
Посмотреть сообщение
You can use Strlen, but i suggest to you to use what Alvord said.
totally wrong, just wrong.

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
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)

pawn Код:
if(inputtext[0] == EOS) //some code here
np
Reply


Messages In This Thread
ondialogresponse inputtext - by Banditukas - 30.12.2014, 13:51
Re: ondialogresponse inputtext - by M4D - 30.12.2014, 14:00
Re: ondialogresponse inputtext - by UltraScripter - 30.12.2014, 14:06
Re: ondialogresponse inputtext - by Alvord - 30.12.2014, 14:16
Re: ondialogresponse inputtext - by TheSnaKe - 30.12.2014, 14:19
AW: ondialogresponse inputtext - by CutX - 30.12.2014, 14:25
Re: ondialogresponse inputtext - by Banditukas - 30.12.2014, 14:57
Re: ondialogresponse inputtext - by Banditukas - 30.12.2014, 15:11
AW: Re: ondialogresponse inputtext - by CutX - 30.12.2014, 15:25
Re: ondialogresponse inputtext - by Vince - 30.12.2014, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)