error 035: argument type mismatch (argument 1) -
ilay65 - 12.09.2014
The error:
Код:
error 035: argument type mismatch (argument 1)
.
The code:
Код:
AdminLevel(inputtext) = AdminLevel(playerid);
Re: error 035: argument type mismatch (argument 1) -
Ox1gEN - 12.09.2014
pawn Код:
AdminLevel(inputtext) = strval(AdminLevel(inputtext));
EDIT: Accidently wrote playerid instead of inputtext.
Re: error 035: argument type mismatch (argument 1) -
ilay65 - 12.09.2014
Quote:
Originally Posted by Ox1gEN
pawn Код:
AdminLevel(inputtext) = strval(AdminLevel(playerid));
|
Now i have 2 errors(still error 035).
Re: error 035: argument type mismatch (argument 1) -
Stinged - 12.09.2014
Show us the AdminLevel stock.
Re: error 035: argument type mismatch (argument 1) -
ilay65 - 12.09.2014
Quote:
Originally Posted by Stinged
Show us the AdminLevel stock.
|
take:
Код:
stock AdminLevel(playerid)
{
new file[64];
GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
format(file, 64, "Users/%s.ini", pname);
return DOF2_GetInt(file, "AdminLevel");
}
Re: error 035: argument type mismatch (argument 1) -
RedCrossER - 12.09.2014
What do you want to do with that code?
pawn Код:
AdminLevel(inputtext) = strval(AdminLevel(playerid));
makes no sense!
Re: error 035: argument type mismatch (argument 1) -
ilay65 - 12.09.2014
Quote:
Originally Posted by RedCrossER
What do you want to do with that code?
pawn Код:
AdminLevel(inputtext) = strval(AdminLevel(playerid));
makes no sense!
|
So what i do ?!
Re: error 035: argument type mismatch (argument 1) -
Ox1gEN - 12.09.2014
Quote:
Originally Posted by RedCrossER
What do you want to do with that code?
pawn Код:
AdminLevel(inputtext) = strval(AdminLevel(playerid));
makes no sense!
|
lol, you are converting the inputtext which is a string into an integer...
EDIT: lol I got confused, you are supposed to do strval(AdminLevel(inputtext));
Re: error 035: argument type mismatch (argument 1) -
ilay65 - 12.09.2014
Quote:
Originally Posted by Ox1gEN
lol, you are converting the inputtext which is a string into an integer...
EDIT: lol I got confused, you are supposed to do strval(AdminLevel(inputtext));
|
Maybe instead of laughing help me?
EDIT: Still no work... fuck this error!
Re: error 035: argument type mismatch (argument 1) -
Ox1gEN - 12.09.2014
Quote:
Originally Posted by ilay65
Maybe instead of laughing help me?
|
To help you I need to see the whole code, this simple code won't help with shit.
Show me entire command.