Command doesn't work
#9

Quote:
Originally Posted by PaulDinam
Посмотреть сообщение
It's not, try it, type /gethelper 1 name
We changed the order so
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;
    }
When i compile mode, reiceved this error
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.
What it's wrong?
Reply


Messages In This Thread
Command doesn't work REP ++ ! - by Johnny_Ionut - 04.02.2015, 08:24
Re: Command doesn't work - by LeonRP - 04.02.2015, 09:09
Re: Command doesn't work - by Johnny_Ionut - 04.02.2015, 09:17
Re: Command doesn't work - by PaulDinam - 04.02.2015, 09:44
Re: Command doesn't work - by Johnny_Ionut - 04.02.2015, 09:57
Re: Command doesn't work - by PaulDinam - 04.02.2015, 10:06
Re: Command doesn't work - by Johnny_Ionut - 04.02.2015, 10:11
Re: Command doesn't work - by PaulDinam - 04.02.2015, 10:15
Re: Command doesn't work - by Johnny_Ionut - 04.02.2015, 11:07
Re: Command doesn't work - by PaulDinam - 04.02.2015, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)