#1

What is wrong in that line. On the filterscript, it compiles without errors. But I wanted to add it on the Admin System and got this errors at line 301
pawn Код:
IRC_GroupSayEx(gGroupID, IRC_ECHO_CHANNEL, "7[disconnect] 3%s (%d) has left the server (Timeout).", playerName(playerid), playerid);
pawn Код:
error 012: invalid function call, not a valid address
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Reply
#2

Ypu must format a string then place it in the IRC print out...

pawn Код:
format(string, sizeof(string), "7[disconnect] 3%s (%d) has left the server (Timeout).", playerName(playerid), playerid);
Reply
#3

Still with this same errors.
pawn Код:
new string[128];
            format(string, sizeof(string), "7[disconnect] 3%s (%d) has left the server (Timeout).", playerName(playerid), playerid);
            IRC_GroupSayEx(gGroupID, IRC_ECHO_CHANNEL, string);
I am sure that the wrong is here
pawn Код:
playerName(playerid), playerid
But I have the stock for this.
pawn Код:
stock playerNick(playerid)
{
    new pname[24];
    GetPlayerName(playerid, pname, 24);
    return pname;
}
Reply
#4

... Change PLayerName to PlayerNick? > YOur stock function
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)