31.12.2012, 23:40
It Works! And Thanks;
Can you by an chance help me with my /newb command aswell? As it shows the same error?
((Im a newbie scripter just started out 2 days ago so I may ask a lot of questions ))
Any Ideas?
Can you by an chance help me with my /newb command aswell? As it shows the same error?
((Im a newbie scripter just started out 2 days ago so I may ask a lot of questions ))
pawn Код:
CMD:newb(playerid, params[])
{
if(params[4])
{
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "[NEWBIE]%s {FFFFFF}%s", str, params[0]);
SendClientMessageToAll(COLOR_BLUE, str);
new string[128];
new Lname[MAX_PLAYER_NAME];
new year, month, day;
new Hour, Minute;
GetPlayerName(playerid,Lname,sizeof(Lname));
getdate(year, month, day);
gettime(Hour, Minute);
format(string,sizeof(string),"[%d/%d/%d :: %02d:%02d] - %s has used the command (%s) \r\n", day, month, year, Hour, Minute, Lname, params);
cmdlog = fopen("files/logs/chat.txt", io_append);
fwrite(cmdlog,string);
fclose(cmdlog);
}
else
{
SendClientMessage(playerid,COLOR_GREY, "USAGE: /newb [question]");
return 1;
}
return 1;
}