warning 202: number of arguments does not match definition
#1

I have some problem with gamemode by King_Hual
There:
D:\New folder (4)\pawno\include\y_ini.inc(1050) : warning 202: number of arguments does not match definition

Код:
stock LoginPlayer(playerid, password[])
{
	if (udb_hash(password) == PlayerInfo[playerid][PLAYER_PASS])
	{
		new string2[64], string3[64], string4[64];
		GivePlayerMoney(playerid, PlayerInfo[playerid][PLAYER_CASH]);
		SetPlayerScore(playerid, PlayerInfo[playerid][PLAYER_SCORE]);
		logged_in[playerid] = 1;
		SendClientMessage(playerid, 0x00FF00FF, "*Ban da dang nhap!*");
		#if defined StaticNums
		format(string2, sizeof(string2), "Exp: %05d/%05d",PlayerInfo[playerid][PLAYER_EXP], PlayerInfo[playerid][PLAYER_TOTALEXP]);
		format(string3, sizeof(string3), "Level: %02d",PlayerInfo[playerid][PLAYER_LEVEL]);
		#else
		format(string2, sizeof(string2), "Exp: %d/%d",PlayerInfo[playerid][PLAYER_EXP], PlayerInfo[playerid][PLAYER_TOTALEXP]);
		format(string3, sizeof(string3), "Level: %d",PlayerInfo[playerid][PLAYER_LEVEL]);
		#endif
		TextDrawSetString(ExpText[playerid], string2);
		TextDrawSetString(LevelText[playerid], string3);
		#if defined UseProgBar
		SetProgressBarMaxValue(bar[playerid], PlayerInfo[playerid][PLAYER_TOTALEXP]);
		SetProgressBarValue(bar[playerid], PlayerInfo[playerid][PLAYER_EXP]);
		#endif
		TextDrawColor(HPText[playerid], 0xffffffff);
		format(string4, sizeof(string4), "%d/%d",(PlayerInfo[playerid][PLAYER_LEVEL] * 50) / 2, (PlayerInfo[playerid][PLAYER_LEVEL] * 50) / 2);
		TextDrawSetString(HPText[playerid], string4);
		SetProgressBarMaxValue(HPBar[playerid], (PlayerInfo[playerid][PLAYER_LEVEL] * 50) / 2);
		SetProgressBarValue(HPBar[playerid], (PlayerInfo[playerid][PLAYER_LEVEL] * 50) / 2);
		Attach3DTextLabelToPlayer(HP3DText[playerid], playerid, 0, 0, 0.2);
		Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0, 0, 0.4);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, PlayerInfo[playerid][SAWNOFF] * 10);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PlayerInfo[playerid][SILENCED] * 10);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PlayerInfo[playerid][DEAGLE] * 10);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PlayerInfo[playerid][SHOTGUN] * 10);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PlayerInfo[playerid][SPAS12] * 10);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, PlayerInfo[playerid][MICRO_UZI] * 10);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PlayerInfo[playerid][MP5] * 10);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PlayerInfo[playerid][AK47] * 10);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PlayerInfo[playerid][M4] * 10);
		SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PlayerInfo[playerid][SNIPERRIFLE] * 10);
}
       else
{
Line 1050 SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PlayerInfo[playerid][AK47] * 10);
Reply
#2

can you please show me exactly the line 1050?
Reply
#3

Quote:
Originally Posted by Vennox
Посмотреть сообщение
can you please show me exactly the line 1050?
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PlayerInfo[playerid][AK47] * 10);
Reply
#4

oh, i just saw that the warning is not from the gamemode, is from the includes.
try updating YSI
https://github.com/pawn-lang/YSI
Reply
#5

Quote:
Originally Posted by Vennox
Посмотреть сообщение
oh, i just saw that the warning is not from the gamemode, is from the includes.
try updating YSI
https://github.com/pawn-lang/YSI
Still not work thanks you
Reply
#6

Try including YSI libraries right after a_samp or sscanf
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)