Little Little Help here.!
#1

pawn Код:
if(strcmp(cmd, "/admins", true) == 0)
    {
        SendClientMessage(WHITE, "SERVER: Unknown command.");
        new pname;
        GetPlayerName(playerid, pname);
        new reason[128];
        format(reason,sizeof(reason),"%s has typed /admins he might hack now, Please check him.",pname);
        SendClientMessageToAdmins(RED, reason, 1);

        return 1;
    }
pawn Код:
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7352) : error 035: argument type mismatch (argument 2)
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
pawn Код:
7352:SendClientMessage(WHITE, "SERVER: Unknown command.");

            7354: GetPlayerName(playerid, pname);
Reply
#2

HAHAHAHAHAH ok this is your last chance, unblock. change line 7352 to
pawn Код:
SendClientMessage(playerid,WHITE,"SERVER: Unknown command.");
and getpalyer name
pawn Код:
GetPlayerName(playerid,pname,sizeof(pname));
Reply
#3

pawn Код:
SendClientMessage(playerid,WHITE,"Server:Unknown Command."); //you forgot to add the "playerid"
GetPlayerName(playerid, pname, sizeof(pname))
Edit: Tanush was faster.
Reply
#4

-.- u copy me or u press enter after i did
Reply
#5

pawn Код:
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7356) : error 001: expected token: ";", but found "new"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply
#6

alex copy mine, for the ghost guy he made an error with ;
Reply
#7

You must have forgoten to add ";" in your script when you added the new lines.
Reply
#8

Ok, now:

pawn Код:
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
C:\Users\Alex\Desktop\CodSamp\gamemodes\COD5.pwn(7354) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Reply
#9

pawn Код:
new pname[MAX_PLAYER_NAME];
Reply
#10

Thanks son
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)