04.02.2015, 11:07
We changed the order so
When i compile mode, reiceved this error
What it's wrong?
pawn Код:
CMD:gethelper(playerid, params[])
{
new slot, name[MAX_PLAYER_NAME], string[126];
if(sscanf(params, "ds[45]", slot, name)) return SendClientMessage(playerid, COLOR_WHITE, "Type: /gethelper [SLOT] [NAME]");
if (Info[playerid][pAdmin] >= 4)
{
switch (slot)
{
case 1:
{
new INI:file = INI_Open("/helpers.ini");
INI_WriteInt(file,"HELPER1",name); // On this line is error << << << <<====
format(string, sizeof(string), "HELPER1 is now: %s", name);
SendClientMessage(playerid, COLOR_WHITE, string);
INI_Close(file);
}
default: SendClientMessage(playerid, COLOR_WHITE, "Invalid ID");
}
}
return 1;
}
pawn Код:
C:\Documents and Settings\Johnny\Desktop\wdrp8.pwn(54010) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.