error 035: argument type mismatch (argument 1)
#1

The error:
Код:
error 035: argument type mismatch (argument 1)
.

The code:
Код:
AdminLevel(inputtext) = AdminLevel(playerid);
Reply
#2

pawn Код:
AdminLevel(inputtext) = strval(AdminLevel(inputtext));

EDIT: Accidently wrote playerid instead of inputtext.
Reply
#3

Quote:
Originally Posted by Ox1gEN
Посмотреть сообщение
pawn Код:
AdminLevel(inputtext) = strval(AdminLevel(playerid));
Now i have 2 errors(still error 035).
Reply
#4

Show us the AdminLevel stock.
Reply
#5

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

What do you want to do with that code?
pawn Код:
AdminLevel(inputtext) = strval(AdminLevel(playerid));
makes no sense!
Reply
#7

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 ?!
Reply
#8

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));
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)