Little help
#1

pawn Код:
if (inputtext > GetPlayerCash(playerid) || inputtext < 1)
Reply
#2

may i ask what you need help with?
Reply
#3

LOL?

Quote:

array must be indexed (variable "inputtext")

Reply
#4

pawn Код:
if (strval(inputtext) > GetPlayerCash(playerid) || strval(inputtext)< 1)
Try this.
Reply
#5

and
pawn Код:
GivePlayerCash(playerid,-inputtext);
Quote:

argument type mismatch (argument 2)

Reply
#6

pawn Код:
GivePlayerCash(playerid,-strval(inputtext));
strval returns the value of a string or integer etc.
https://sampwiki.blast.hk/wiki/strval
Reply
#7

pawn Код:
if (strval(inputtext) > GetPlayerCash(playerid) || strval(inputtext)< 1)
{
    GivePlayerCash(playerid,-strval(inputtext));
    // Do the stuff you want here.
    return 1;
}
+Rep if helped.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)