[Error] georgedm.pwn(305) : error 035: argument type mismatch (argument 2)
#1

Hey, I'm pretty new to Pawn script, I decided to actually create something, a simple DM gamemode.

I'm getting the error: georgedm.pwn(305) : error 035: argument type mismatch (argument 2).
I've tried quite a lot, but obviously not everything. The command in question is:

PHP код:
CMD:stats(playeridparams[])
{
    new 
string[128];
    
format(stringsizeof(string), "Kills: %i | Deaths: %i"pInfo[playerid][KILLS], pInfo[playerid][DEATHS]);
    
SendClientMessage(playeridstring);
    return 
1;

And the enum is:
PHP код:
enum playerInfo
{
    
KILLS 0,
    
DEATHS 0
};
new 
pInfo[MAX_PLAYERS][playerInfo]; 
I've got a feeling it's going to be a huge newbie mistake, but that's what this section is for thanks!
Reply
#2

The actual problem is SendClientMessage, it has a parameter in the middle that is for colors.

But there's also something wrong in your enum.
You can't assign values inside of enums.
Reply
#3

Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)