SA-MP Forums Archive
Help me with inputtext - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me with inputtext (/showthread.php?tid=353524)



Help me with inputtext - Stefand - 23.06.2012

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);
                }
            }



Re: Help me with inputtext - Faisal_khan - 23.06.2012

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.


Re: Help me with inputtext - Stefand - 23.06.2012

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;
}



Re: Help me with inputtext - Faisal_khan - 23.06.2012

Just read it you will get it ShowPlayerDialog


Re: Help me with inputtext - MP2 - 23.06.2012

¬_¬

inputtext is a string:

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



Re: Help me with inputtext - Stefand - 23.06.2012

SOlved