#1

Код:
stock ClearChatForAll(playerid)
{
    SendClientMessageToAll(playerid,-1,"SERVER: Admin have clear the chat box.");
    return 1;
}

stock ShowPlayerStats(playerid)
{
    SendClientMessageToAll(playerid,-1,"SERVER: Natan is work. keep it UP.");
    return 1;
}
the error
Код:
C:\Documents and Settings\CT\Desktop\HUYA TDM\pawno\new.pwn(22) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\CT\Desktop\HUYA TDM\pawno\new.pwn(28) : error 035: argument type mismatch (argument 2)
hhow to fix it?
Reply
#2

There is no 'playerid' parameter in SendClientMessageToAll

See Here:
https://sampwiki.blast.hk/wiki/SendClientMessageToAll

pawn Код:
stock ClearChatForAll(playerid)
{
    SendClientMessageToAll(-1,"SERVER: Admin have clear the chat box.");
    return 1;
}

stock ShowPlayerStats(playerid)
{
    SendClientMessageToAll(-1,"SERVER: Natan is work. keep it UP.");
    return 1;
}
NOTE: If ClearChatForAll is supposed to clear the chat as well, I recommend using:
pawn Код:
for(new i = 0; i < 100; i++)
{
    SendClientMessageToAll(-1, " ");
}
Reply
#3

Yeah listen to BenzoAMG. He got it correct, as usual
Reply
#4

pawn Код:
stock ClearChatForAll(playerid)
{
    SendClientMessageToAll(-1,"SERVER: Admin have clear the chat box.");
    return 1;
}

stock ShowPlayerStats(playerid)
{
    SendClientMessageToAll(-1,"SERVER: Natan is work. keep it UP.");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)