Witam.
Motd nie chce się wyświetlać:
public PrzegladajZgloszenia(client)
{
decl String:_sBuffer[1024];
BuildPath(Path_SM, _sBuffer, sizeof(_sBuffer), "zgloszenia.txt");
new Handle:_hFile;
if(FileExists(_sBuffer)){
_hFile = OpenFile(_sBuffer, "r");
}
else
{
PrintToChat(client, "Brak Zgloszen");
return 0;
}
decl String:tresc[1024];
ReadFileString(_hFile, tresc, 1023, -1);
PrintToChat(client, "%s", tresc);
ShowMOTDPanel(client, "Zgloszenia", tresc, MOTDPANEL_TYPE_TEXT)
return 0;
}
Wydaje mi się że wszystko jest jak trzeba, ale po wywołaniu funkcji nic się nie dzieje.
Używam sourcemod 1.6.4.


Dodatki SourceMod













