inputtext bug
#1

Hello all I have this script
pawn Код:
if (dialogid == 85)
    {
        new string[50];
        PlayerInfo[playerid][pAge] = inputtext;
        format(string, sizeof(string), "Ok, so you have %d", PlayerInfo[playerid][pAge]);
        SendClientMessage(playerid,0xFFFFFFFF, string);
    }
It says
Код:
Taurus.pwn(218) : error 006: must be assigned to an array
I tried
pawn Код:
PlayerInfo[playerid][pAge] = inputtext[0];
but Age is always 49 or 53 or any random number.
THANKS AND PLEASE!
Reply
#2

Try:
pawn Код:
PlayerInfo[playerid][pAge] = strval(inputtext);
Reply
#3

thanks it worked very much thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)