error 035: argument type mismatch (argument 2)
#8

Quote:
Originally Posted by Mionee
Посмотреть сообщение
Lol, what? He has it defined, if he hadn't it have shown a undefined error. Besides, you should probably try and get rid of your disgusting attitude before you end up getting banned.

@OP:

The format line is alright, although the string size [500] should NOT be 500 unless you use it in a dialog. Your text is 99, and assuming GetRPName returns a name, we end up with 123 since MAX_PLAYER_NAME is 24.

Change the string size to 125 and it'll be fine. For your error, can you show us what your GetRPName(playerid) looks like? When you PMed me, it had two params so it's most likely a param issue.

EDIT: @Adityz The compiler can't detect mistakes that are done in "" tags, so that is not the issue. It only adds on to what I said above, which is a param issue with the function he is trying to get information from.
"u dont have lred defined correctly". He didn't say it wasn't defined at all, and you don't get banned for being correct.

What he means is 'lred' has been defined as something along the lines of "{FF0000"} rather than 0xFF0000FF. So he's using it as a define for color embedding rather than a hex value.

Simply change:
pawn Код:
#define lred "{FF0000}" //Or whatever you have here...
to:
pawn Код:
#define lred 0xFF0000FF //As above
EDIT: Lol, had this page open for over 20 minutes, probably should have refreshed..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)