Jump to content
  • 0

pomoc array must be indexed (variable "inputtext")


Lukman

Dotaz

psal sem to už do chatu a nikdo neodepsal tak sry za spam a věci tohohle typu si odpusťte:

 

* :spam: ...

 


 

Jednoduše sem dělal do módu banku a hodilo mi to na řádkách typu

GivePlayerMoney(playerid,inputtext);

tyhle errory...nevim jak bych tam určil tu hodnotu když nevim jakou částku tam hráč napíše...tak mi pls vysvětlete co po mě ten error chce... "help"

 

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6920) : error 033: array must be indexed (variable "inputtext")

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6921) : error 033: array must be indexed (variable "inputtext")

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6922) : error 033: array must be indexed (variable "inputtext")

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6923) : error 033: array must be indexed (variable "inputtext")

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6924) : error 035: argument type mismatch (argument 2)

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6925) : error 033: array must be indexed (variable "inputtext")

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6936) : error 033: array must be indexed (variable "inputtext")

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6937) : error 033: array must be indexed (variable "inputtext")

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6938) : error 033: array must be indexed (variable "inputtext")

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6939) : error 033: array must be indexed (variable "inputtext")

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6942) : error 035: argument type mismatch (argument 2)

C:\Documents and Settings\Lukáš\Plocha\Business-City.pwn(6943) : error 033: array must be indexed (variable "inputtext")

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

12 Errors.

 

//EDIT: zkoušel sem to i přes PVAR a prostě to nejde... :(

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

GivePlayerMoney(playerid, strval(inputtext));

Funkce strval ti dokaze prevest cisla ze stringu do normalni ciselne hodnoty. Treba prave k tomuhle se hodi,

Link to comment
Share on other sites

  • 0
GivePlayerMoney(playerid, strval(inputtext));

Funkce strval ti dokaze prevest cisla ze stringu do normalni ciselne hodnoty. Treba prave k tomuhle se hodi,

dík vyřešilo to...

RESPEKT :thumbup:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...