stupid error what is wrong?
#1

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!" );
        }
    }
}
Reply
#2

strval(inputtext)
Reply
#3

this error probably occurs because of the "inputtext".
Reply
#4

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 .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)