10.08.2014, 08:32
You can't copy strings that way. Also: you don't need the temporary string variable:
pawn Код:
format(Jstring,sizeof(Jstring),"%d:%d:%d - %s(ID: %d) Has Reported %s(ID: %d) |{FF0000} REASON: %s ",hour,minute,second,GetName(playerid),playerid,GetName(reported),reported,reason);
Reports[MAX_REPORTS_STORE-1] = Jstring;
//changes into
format(Reports[MAX_REPORTS_STORE-1],sizeof(Reports[]),"%d:%d:%d - %s(ID: %d) Has Reported %s(ID: %d) |{FF0000} REASON: %s ",hour,minute,second,GetName(playerid),playerid,GetName(reported),reported,reason);
//and
format(Jstring,sizeof(Jstring),"%s(ID: %d): %s",GetName(playerid),playerid,text);
ChatMessages[MAX_CHAT_MSGS_STORE-1] = Jstring;
//into
format(ChatMessages[MAX_CHAT_MSGS_STORE-1],sizeof(ChatMessages[]),"%s(ID: %d): %s",GetName(playerid),playerid,text);