27.06.2016, 18:21
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:
And the enum is:
I've got a feeling it's going to be a huge newbie mistake, but that's what this section is for thanks!
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(playerid, params[])
{
new string[128];
format(string, sizeof(string), "Kills: %i | Deaths: %i", pInfo[playerid][KILLS], pInfo[playerid][DEATHS]);
SendClientMessage(playerid, string);
return 1;
}
PHP код:
enum playerInfo
{
KILLS = 0,
DEATHS = 0
};
new pInfo[MAX_PLAYERS][playerInfo];