Error 035: argument type mismatch (argument 1)
#1

pawn Код:
#include <zcmd>
#include <sscanf2>

CMD:kick(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
      new Name[MAX_PLAYER_NAME], KickMessage[128];
      new Name2[MAX_PLAYER_NAME], id[128], reason[128];
      GetPlayerName(playerid, Name, sizeof(Name));
      GetPlayerName(id, Name2, sizeof(Name2)); // Line 188
      format(KickMessage, sizeof(KickMessage), "%s(%d) has kicked player %s(%d). Reason: %s", Name, playerid, Name2, id, reason);
      SendClientMessageToAll(COL_WHITE, KickMessage);
      Kick(id); // Line 191
    }
    return 1;
}
pawn Код:
C:\Users\Admin\Desktop\SA-MP\gamemodes\prison.pwn(188) : error 035: argument type mismatch (argument 1)
C:\Users\Admin\Desktop\SA-MP\gamemodes\prison.pwn(191) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
Error 035: argument type mismatch (argument 1) - by Noles2197 - 17.01.2013, 21:48
Re: Error 035: argument type mismatch (argument 1) - by Djole1337 - 17.01.2013, 21:51
Re: Error 035: argument type mismatch (argument 1) - by Kwarde - 18.01.2013, 11:24

Forum Jump:


Users browsing this thread: 1 Guest(s)