SA-MP Forums Archive
Input dialog help.. Rep+ - 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: Input dialog help.. Rep+ (/showthread.php?tid=293528)



Input dialog help.. Rep+ - Azzeto - 29.10.2011

PHP код:
    if(dialogid == DIALOG_CIVILIANCLOTHES)
    {
        if(
response)
         {
            if(
strlen(inputtext) > 0)
            {
                
SetPlayerSkin(playerid,inputtext);
            }
            else
            {
                
SendClientMessage(playerid,COLOR_GRAY,"Error: You're message was to short!");
            }
        }
        return 
1;
    } 
Thats my dialog, I get this error.
Код:
C:\Documents and Settings\Customer\Desktop\Roleplay\gamemodes\rp.pwn(2200) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
How do I fix this? Thanks!


Re: Input dialog help.. Rep+ - [HiC]TheKiller - 29.10.2011

Make

pawn Код:
SetPlayerSkin(playerid,inputtext);
Into

pawn Код:
SetPlayerSkin(playerid, strval(inputtext));
Also, you might want IsValidSkin


Re: Input dialog help.. Rep+ - Azzeto - 29.10.2011

Thanks repped