SA-MP Forums Archive
stupid error what is wrong? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: stupid error what is wrong? (/showthread.php?tid=246867)



stupid error what is wrong? - The Woody - 06.04.2011

When i compile i get these errors:

Код:
(4088) : error 035: argument type mismatch (argument 1)
(4095) : error 035: argument type mismatch (argument 2)
Here is the code:
pawn Код:
if(response)
{
    if( Player[playerid][Rank] >= 1)
    {
        if(strlen(inputtext) > 0 || strlen(inputtext) <= 3)
        {
            if(IsInvalidSkin(inputtext) ) // line 4088
            {
                SendClientMessage( playerid, WHITE, "Invalid skin!" );
            }
            else
            {
                SendClientMessage( playerid, WHITE, "You have changed your clothes." );
                SetPlayerSkin(playerid, inputtext); // line 4095
            }                            
        }
        else
        {
            SendClientMessage( playerid, WHITE, "You can only choose between 0 - 300!" );
        }
    }
}



Re: stupid error what is wrong? - Vince - 06.04.2011

strval(inputtext)


Re: stupid error what is wrong? - Gray - 06.04.2011

this error probably occurs because of the "inputtext".


Re: stupid error what is wrong? - The Woody - 06.04.2011

Well then how can i check if he types a valid skin id or not. If i can't check the inputtext?

EDIT: Ahh.. i get it now thanks guys .