Giving string error tried a lot of things nothing is working..
#1

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
Reply
#2

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[]))
Reply
#3

Thank you for your answer everything worked as charm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)