15.02.2013, 18:31
I'm trying to do something like this:
but apparently it's to many arguments or something. "argument type mismatch (argument 3)"
This is the code/script:
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));
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);