Help me with inputtext
#1

Hello,

This is the first time that im using inputtext thing.

But I got this error:

pawn Код:
C:\Users\Stefan Dorst\Desktop\Zombie RP\gamemodes\Zombie.pwn(444) : error 006: must be assigned to an array
C:\Users\Stefan Dorst\Desktop\Zombie RP\gamemodes\Zombie.pwn(444) : error 029: invalid expression, assumed zero
C:\Users\Stefan Dorst\Desktop\Zombie RP\gamemodes\Zombie.pwn(444) : warning 215: expression has no effect
C:\Users\Stefan Dorst\Desktop\Zombie RP\gamemodes\Zombie.pwn(445) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

pawn Код:
case 3000:
            {
                if(strlen(inputtext) >= 0 && strlen(inputtext) < 3)
                {
                    Player[playerid][LastSkin] = inputtext);
                    SetPlayerSkin(playerid, inputtext);
                }
            }
Reply
#2

pawn Код:
case 3000:
            {
                if(strlen(inputtext) >= 0 && strlen(inputtext) < 3)
                {
                    Player[playerid][LastSkin] = inputtext;//here an extra bracket
                    SetPlayerSkin(playerid, inputtext);
                }
            }
You had an extra bracket.
Reply
#3

pawn Код:
C:\Users\Stefan Dorst\Desktop\Zombie RP\gamemodes\Zombie.pwn(444) : error 006: must be assigned to an array
C:\Users\Stefan Dorst\Desktop\Zombie RP\gamemodes\Zombie.pwn(445) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
This is the command

pawn Код:
command(skin, playerid, params[])
{
    #pragma unused params
    ShowPlayerDialog(playerid, 3000, DIALOG_STYLE_INPUT, "Change your skin", "", "Change", "Exit");
    return 1;
}
Reply
#4

Just read it you will get it ShowPlayerDialog
Reply
#5

¬_¬

inputtext is a string:

pawn Код:
Player[playerid][LastSkin] = strval(inputtext);
SetPlayerSkin(playerid, strval(inputtext));
Reply
#6

SOlved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)