error 035: argument type mismatch (argument 2)
#1

pawn Код:
CMD:r(playerid,params[])
{
    if(GetPlayerSkin(playerid) == 285  || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281) //replace this with your Cop Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
    {
        if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
        new name[24],msg[128];
        GetPlayerName(playerid,name,24);
        format(msg,128,"(CH-1) LAPD 0%d: %s, Over.",playerid, params);
        for(new i=0;i<MAX_PLAYERS;i++)
        if(GetPlayerSkin(i) == 285 || GetPlayerSkin(i) == 282 || GetPlayerSkin(i) == 281 || GetPlayerSkin(i) == 283 || GetPlayerSkin(i) == 288) SendClientMessage(i,COL_BLUE,msg); // same as above for skins
    }
    if(GetPlayerSkin(playerid) == 285  || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288) //replace this with your Cop Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
    {
        if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
        new name[24],msg[128];
        GetPlayerName(playerid,name,24);
        format(msg,128,"(CH-1) LASD 1%d: %s, Over.",playerid, params);
        for(new i=0;i<MAX_PLAYERS;i++)
        if(GetPlayerSkin(i) == 285 || GetPlayerSkin(i) == 282 || GetPlayerSkin(i) == 281 || GetPlayerSkin(i) == 283 || GetPlayerSkin(i) == 288) SendClientMessage(i,COL_BLUE,msg); // same as above for skins
    }
    return 1;
}
Quote:

C:\Users\Luca\Desktop\SAMP\gamemodes\Gamemode.pwn( 1720) : error 035: argument type mismatch (argument 2)
C:\Users\Luca\Desktop\SAMP\gamemodes\Gamemode.pwn( 1729) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Please help.
Reply
#2

Which lines?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)