05.07.2014, 06:16
Quote:
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. |
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...
pawn Код:
#define lred 0xFF0000FF //As above