Array must be indexed
#7

Quote:
Originally Posted by C00K13M0N$73R
Посмотреть сообщение
Remove [26] as target is a id.
Actually it is a name, since the player must insert a full name in the dialog.


-----

Alright I did this:
pawn Код:
new target = ReturnUser("inputtext");
And it compiles, but when I am ingame this part won't work:

pawn Код:
if(target != INVALID_PLAYER_ID)
            {
                //blabla
            }
            else
            {
                //blabla

            }
Ofcourse the //blabla contains code, but even if the name is a correct one it is recognized as an invalid one.
Reply


Messages In This Thread
Array must be indexed - by Mado - 15.12.2012, 09:46
Re: Array must be indexed - by Huxley - 15.12.2012, 09:47
Re: Array must be indexed - by C00K13M0N$73R - 15.12.2012, 09:48
Re: Array must be indexed - by Mado - 15.12.2012, 09:48
Re: Array must be indexed - by C00K13M0N$73R - 15.12.2012, 09:50
Re: Array must be indexed - by Konstantinos - 15.12.2012, 09:51
Re: Array must be indexed - by Mado - 15.12.2012, 10:01
Re: Array must be indexed - by C00K13M0N$73R - 15.12.2012, 10:04
Re: Array must be indexed - by Konstantinos - 15.12.2012, 10:05
Re: Array must be indexed - by ikey07 - 15.12.2012, 10:07

Forum Jump:


Users browsing this thread: 1 Guest(s)