Stock problem, or maybe arguments problem
#1

Hello guys, I'm using Y_INI login/register system and decided to make /stats from it, so here's my script.

pawn Код:
CMD:stats(playerid,params[])
{
    new string[256], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    new score = GetPlayerScore(playerid);
    new cash = GetPlayerMoney(playerid);
    new kills = GetPlayerKills(playerid, name, Kills); //This line
    new deaths = GetPlayerDeaths(playerid, name, Deaths); //This line
    format(string,sizeof(string), "Name: %s\nCurrent ID: %d\nScore: %i\nCash: $%d\nKills: %i\nDeaths: %i", name, playerid, score, cash, kills, deaths);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Your stats", string, "OK", "");
    return 1;
}

stock GetPlayerKills(playerid, name[], value[])
{
    INI_Int("Kills", pInfo[playerid][Kills]);
    return 1;
}

stock GetPlayerDeaths(playerid, name[], value[])
{
    INI_Int("Deaths", pInfo[playerid][Deaths]);
    return 1;
}
Код:
C:\Documents and Settings\User\Desktop\SAMP 0.3X Scripting\gamemodes\stuntproject.pwn(520) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\User\Desktop\SAMP 0.3X Scripting\gamemodes\stuntproject.pwn(521) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
How to fix it?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)