How to fix this warnings?
#1

Hello!

I get this warnings.. how to fix them?
pawn Код:
(375) : warning 202: number of arguments does not match definition
(395) : warning 202: number of arguments does not match definition
(396) : warning 202: number of arguments does not match definition
(430) : warning 202: number of arguments does not match definition
(431) : warning 202: number of arguments does not match definition
(433) : warning 202: number of arguments does not match definition
(434) : warning 202: number of arguments does not match definition
(435) : warning 202: number of arguments does not match definition
(436) : warning 202: number of arguments does not match definition
(437) : warning 202: number of arguments does not match definition
(438) : warning 202: number of arguments does not match definition
(442) : warning 202: number of arguments does not match definition
(445) : warning 202: number of arguments does not match definition
(446) : warning 202: number of arguments does not match definition
(447) : warning 202: number of arguments does not match definition
(448) : warning 202: number of arguments does not match definition
(472) : warning 202: number of arguments does not match definition
(488) : warning 202: number of arguments does not match definition
(500) : warning 202: number of arguments does not match definition
(505) : warning 202: number of arguments does not match definition
Here Are the lines.

pawn Код:
375    INI_WriteString(File, "IP",PlayerInfo[playerid][pIP], 16);
395    INI_WriteString(File, "Weapon",PlayerInfo[playerid][pWeapon], 13);
396    INI_WriteString(File, "Weapon-Ammo",PlayerInfo[playerid][pWeaponAmmo], 13);
430    INI_WriteString(File, "Prison-Reason",PlayerInfo[playerid][pPrisonReason], 64);
431    INI_WriteString(File, "Prison-By",PlayerInfo[playerid][pPrisonBy], 32);
433    INI_WriteString(File, "Wanted1",PlayerInfo[playerid][pWanted1], 64);
434    INI_WriteString(File, "Wanted2",PlayerInfo[playerid][pWanted2], 64);
435    INI_WriteString(File, "Wanted3",PlayerInfo[playerid][pWanted3], 64);
436    INI_WriteString(File, "Wanted4",PlayerInfo[playerid][pWanted4], 64);
437    INI_WriteString(File, "Wanted5",PlayerInfo[playerid][pWanted5], 64);
438    INI_WriteString(File, "Wanted6",PlayerInfo[playerid][pWanted6], 64);
442    INI_WriteString(File, "Contract-By",PlayerInfo[playerid][pContractBy], 32);
445    INI_WriteString(File,"Warn1",PlayerInfo[playerid][pWarn1], 64);
446    INI_WriteString(File, "Warn2",PlayerInfo[playerid][pWarn2], 64);
447    INI_WriteString(File, "Warn3",PlayerInfo[playerid][pWarn3], 64);
448    INI_WriteString(File, "Flag",PlayerInfo[playerid][pFlag], 65);
500    INI_WriteString(File, "Fish",PlayerInfo[playerid][pFish], 5);
505    INI_WriteString(File, "Gate",PlayerInfo[playerid][pGate], 3);
The problem is with INI_WriteString. But how can i fix it?

Edit:As Always i forgot
Reply
#2

Try removing the last set on numbers
Reply
#3

the string numbers ... are for INI_STRING("Gate",PlayerInfo, 3);

this how ever stay like this
INI_WriteString(File, "Gate",PlayerInfo[playerid][pGate]);
Reply
#4

thanks alot. fixed +Rep at both of you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)