INI_WriteInt, several %i/%s statements
#1

I'm trying to do something like this:
pawn Код:
INI_WriteInt(gFile, "%s = CreateObject(%i, %i, %i, %i, %i, %i, %i /*Added by %s*/", gName, gModel, gPosX, gPosY, gPosZ, gRotX, gRotY, gRotZ, GetPlayerName(playerid));
but apparently it's to many arguments or something. "argument type mismatch (argument 3)"

This is the code/script:
pawn Код:
new string[128];
        new gName[9];
        new gModel[4];
        new gPosX[9];
        new gPosY[9];
        new gPosZ[9];
        new gRotX[9];
        new gRotY[9];
        new gRotZ[9];
        if(sscanf(params, "siiiiiiis", gName, gModel, gPosX, gPosY, gPosZ, gRotX, gRotY, gRotZ)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /addgate [gateName] [modelid] [posX] [posY] [posZ] [rotX] [rotY] [rotZ]");
       
        new INI:gFile = INI_Open("gates.txt");
        INI_WriteInt(gFile, "%s = CreateObject(%i, %i, %i, %i, %i, %i, %i /*Added by %s*/", gName, gModel, gPosX, gPosY, gPosZ, gRotX, gRotY, gRotZ, GetPlayerName(playerid));
        INI_Close(gFile);
Reply


Messages In This Thread
INI_WriteInt, several %i/%s statements - by reckst4r - 15.02.2013, 18:31
Re: INI_WriteInt, several %i/%s statements - by Misiur - 15.02.2013, 18:48
Re: INI_WriteInt, several %i/%s statements - by reckst4r - 15.02.2013, 18:53
Re: INI_WriteInt, several %i/%s statements - by Misiur - 15.02.2013, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)