error 047 - Help Me !
#2

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);
Reply


Messages In This Thread
error 047 - Help Me ! - by WhiteAngels - 10.08.2014, 02:47
Re: error 047 - Help Me ! - by Misiur - 10.08.2014, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)