Author Topic: ReadFile  (Read 1363 times)

0 Members and 1 Guest are viewing this topic.

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
ReadFile
« on: January 19, 2007, 08:20:45 am »
When I say /test how can I change the writtens in test.txt file into game password ??
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline cooz

  • Soldier
  • **
  • Posts: 187
  • BANNED
Re: ReadFile
« Reply #1 on: January 19, 2007, 08:39:43 am »
something like that:
Code: [Select]
procedure OnCommand(ID: integer;Text: string);
begin
  if Text= '/test' then WriteFile('test.txt', ReadINI('soldat.ini','NETWORK','Game_Password','*ERROR*'));
end;
?
Dead man! Dead man walking! We got a dead man walking here! Banned man crawling more like