Input dialog help.. Rep+
#1

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!
Reply
#2

Make

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

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

Thanks repped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)