Wie kann ich nun ein Rcon Command mit Parametern erstellen?
Hier ist mein Code:
public OnRconCommand(cmd[])
{
if(strcmp(cmd, "consay",false)==0)
{
new text[128];
if(sscanf(params,"s",text)) return print("Use: /consay [Text] to send a Console Message");
formatToAll(Sh12,"(( Console: %s ))",text);
return 1;
}
return 1;
}
{
if(strcmp(cmd, "consay",false)==0)
{
new text[128];
if(sscanf(params,"s",text)) return print("Use: /consay [Text] to send a Console Message");
formatToAll(Sh12,"(( Console: %s ))",text);
return 1;
}
return 1;
}
Error:
C:\Users\Narushi\Desktop\samp\New-Evolution-Reallife\gamemodes\SelfmadeBT.pwn(2981) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.