SA-MP Forums Archive
Giving string error tried a lot of things nothing is working.. - 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: Giving string error tried a lot of things nothing is working.. (/showthread.php?tid=468164)



Giving string error tried a lot of things nothing is working.. - Scrillex - 06.10.2013

Hello dear samp members.. Idk why but I cant get off those errors of my code... I know I'm missing something

Here is the enum:


pawn Код:
PhoneNummber[9],
    DoorCode[4],
    PostCode[6],
    Address[16],
    BankPin[4],
    Signature[10],
Okay the error is on this lines:

pawn Код:
Under OnPlayerDialog

INI_WriteString(File,"PhoneNummber", PlayerInfo[playerid][PhoneNummber],8);
                INI_WriteString(File,"DoorCode",PlayerInfo[playerid][DoorCode],4);
                INI_WriteString(File,"PostCode",PlayerInfo[playerid][PostCode],6);
                INI_WriteString(File,"Address",PlayerInfo[playerid][Address],16);
Error code On all thous lines//:
pawn Код:
warning 202: number of arguments does not match definition



Re: Giving string error tried a lot of things nothing is working.. - DanishHaq - 06.10.2013

pawn Код:
INI_WriteString(File,"PhoneNummber", PlayerInfo[playerid][PhoneNummber]);
                INI_WriteString(File,"DoorCode",PlayerInfo[playerid][DoorCode]);
                INI_WriteString(File,"PostCode",PlayerInfo[playerid][PostCode]);
                INI_WriteString(File,"Address",PlayerInfo[playerid][Address]);
INI_WriteString(INI:file, name[], data[])

not

INI_WriteString(INI:file, name[], data[], sizeof(data[]))


Re: Giving string error tried a lot of things nothing is working.. - Scrillex - 06.10.2013

Thank you for your answer everything worked as charm