SA-MP Forums Archive
[Error] georgedm.pwn(305) : error 035: argument type mismatch (argument 2) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Error] georgedm.pwn(305) : error 035: argument type mismatch (argument 2) (/showthread.php?tid=610735)



[Error] georgedm.pwn(305) : error 035: argument type mismatch (argument 2) - beagerr - 27.06.2016

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!


Re: [Error] georgedm.pwn(305) : error 035: argument type mismatch (argument 2) - Stinged - 27.06.2016

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.


Re: [Error] georgedm.pwn(305) : error 035: argument type mismatch (argument 2) - beagerr - 27.06.2016

Thank you!