COMMAND:afk(playerid,params[]) { new string[125] format(string, sizeof(string),"{2641FEFF} %s is away from keyboard!", PlayerName(playerid)); return 1; }
(14214) : error 001: expected token: ";", but found "-identifier-" (14214) : error 012: invalid function call, not a valid address (14214) : warning 215: expression has no effect (14214) : error 001: expected token: ";", but found ")" (14214) : fatal error 107: too many error messages on one line
COMMAND:afk(playerid,params[])
{
new string[125];
format(string, sizeof(string),"{2641FEFF} %s is away from keyboard!", PlayerName(playerid));
return 1;
}
COMMAND:afk(playerid,params[])
{
new string[125];
format(string, sizeof(string),"{2641FEFF} %s is away from keyboard!", PlayerName(playerid));
SendAdminMessage(COLOR_RED, 1, string); // maybe usefull
return 1;
}
COMMAND:afk(playerid,params[])
{
new string[125];
format(string, sizeof(string),"{2641FEFF} %s is away from keyboard!", PlayerName(playerid));
return 1;
}
You guys sent me the same stuff I did and I said it has errors :/
|
new string[125]
new string[125];
COMMAND:afk(playerid,params[])
{
new string[125];
format(string, sizeof(string),"{2641FEFF} %s is away from keyboard!", PlayerName(playerid));
return 1;
}
COMMAND:afk(playerid,params[])
{
new string[125];
format(string, sizeof(string),"{2641FEFF} You have set your self Away from keyboard!",);
SendClientMessage(playerid, COLOR_RED, string);
return 1;
}
COMMAND:afk(playerid,params[])
{
new string[125];
format(string, sizeof(string),"{2641FEFF} %s is away from keyboard!", PlayerName(playerid));
SendAdminMessage(COLOR_RED, 1, string);
return 1;
}
I still got the same errors I think the problem is somewhere here :
Код:
format(string, sizeof(string),"{2641FEFF} %s is away from keyboard!", PlayerName(playerid)); |
COMMAND:afk(playerid,params[])
{
new string[125];
format(string, sizeof(string),"{2641FEFF} %s is away from keyboard!", PlayerName(playerid));
SendClientMessageToAll(-1,string); // The message will be sent to all the players
return 1;
}