17.01.2011, 10:51
Maybe this will fix the error..
Code:
if(strcmp(cmd, "/leaveanote", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1337) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /leaveanote [Note(TEXT)]"); return 1; } new note[255]; note = strvalEx(tmp); new File:log = fopen("/adminnotes.txt", io_write); fwrite(log, note);// this is line 27006 fclose(log); format(string, sizeof(string), " You have left the note %s", note); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); } } return 1; }