Commands Error Message Error
#1

Hello,
I just need some help, i think its a simple bug fix but couldn't find out how.

Error
pawn Код:
error 035: argument type mismatch (argument 2)
This is what i have as includes.
pawn Код:
#include <a_samp>
#include <YSI\y_ini>
#include <zcmd>
#include <streamer>
OnPlayercommandPerformed
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
        return SendClientMessage(playerid, RED, "Ops! Unknown Command!");
    return 1;
}
Reply
#2

I assume the problem is with the SendClientMessage line? (You didn't say which line the error was on)

The error means that the second argument has the wrong type. It should be a hex colour (or decimal)
Reply
#3

Have you made sure you defined the color 'RED' ??

Quote:

#define RED 0xFF0000FF

For example.

Maybe that might fix your problem!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)