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

Hi,
I think i'm doing something wrong here. Check the codes and errors.

Код:
    if (dUserINT(PlayerName2(playerid)).("Banned") == 1)
    {
		new year,month,day; getdate(year, month, day);
		new reason[128];
		new tmp[128];
		new player1;
        new playername[MAX_PLAYER_NAME];
        new adminname [MAX_PLAYER_NAME];
        player1 = strval(tmp);
		GetPlayerName(player1, playername, sizeof(playername));
		GetPlayerName(playerid, adminname, sizeof(adminname));
		new String[500];
		strcat(String, "You are banned from this server :\n\n");
        strcat(String, "{FF0000}» Account Name : %s\n", playername); ///line : 738
        strcat(String, "{FF0000}» Banned by : %s\n", adminname);  ///line : 739
        strcat(String, "{FF0000}» Reason : %s\n", reason); ///line : 740
        strcat(String, "{FF0000}» Ban Date : %d/%d/%d\n",day,month,year); ///line : 741
        /////////////////////////////////////////////////////////////////////////////////////////
		dUserSetINT(PlayerName2(player1)).("Banned",1);
		dUserSet(PlayerName2(player1)).("BannedBy",adminname);
		dUserSet(PlayerName2(player1)).("BannedReason",reason);
		format(str,sizeof(str),"%d/%d/%d",year, month, day);
        dUserSet(PlayerName2(player1)).("BannedDate",str);
        /////////////////////////////////////////////////////////////////////////////////////////
        ShowPlayerDialog(playerid,15576,DIALOG_STYLE_MSGBOX,"{FF0000}Account banned!",String,"Ok","");
		format(string,sizeof(string),"[ Player %s (Id: %d) has beenAutomatically  Kicked. | Reason: Ban Evade. ]",PlayerName,playerid);
		SendClientMessageToAll(red, string);  print(string);
		SaveIn("KickLog",string);  Kick(playerid);
    }
Errors :

Код:
(738) : error 035: argument type mismatch (argument 3)
(739) : error 035: argument type mismatch (argument 3)
(740) : error 035: argument type mismatch (argument 3)
(741) : warning 202: number of arguments does not match definition
(741) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Error.
And kindly please check the codes. i don't think so they are correct.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)