0 Members and 1 Guest are viewing this topic.
WriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for '+DEC+' Cash',$EE81FAA1);//try this insteadWriteConsole(0,IdtoName(ID)+' has just bought bigger bangs for '+IntToStr(DEC)+' Cash',$EE81FAA1);
any good pascal compilers out there i can use that are EASY to use? so that debugging will be simpler as i will be able to copy and paste code, and find out the errors that way?
Numplayers works fine
// if Text = '/buy ally' then begin if Cash < 10000 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase an ally, not enough funds!',$EE81FAA1); end; if Cash >= 10000 then begin Cash :=Cash-10000; Command('/setteam1 '+inttostr(Botn)); WriteConsole(0,IdtoName(ID)+' has just bought an ally for 10000 Cash',$EE81FAA1); end; end;
Command('/maxrespawntime 20');
QuoteNumplayers works fine did u even read that bit? i know that he did mean HighestID but NumPlayers IS working PERFECTLYplease do not post if you havent read the topic, that is really annoying
if Text = '/deathexplode' then begin WriteConsole(0,'death explosions enabled', $00EE0000); //Command('/maxrespawntime 20'); WriteLn('death explosions have been enabled by ' + IntToStr(ID) + '!'); deathexp := True; end; if Text = '/nodeathexp' then begin WriteConsole(0,'death explosions disabled', $00EE0000); //Command('/maxrespawntime 2'); WriteLn('death explosions have been disabled by ' + IntToStr(ID) + '!'); deathexp := False; end;
how do i convert a byte to string
if Text = '/buy ally' then begin if Cash < 10000 then begin WriteConsole(0,IdtoName(ID)+' just tried to purchase an ally, not enough funds!',$EE81FAA1); end; if Cash >= 10000 then begin Cash :=Cash-10000; Command('/setteam1 '+inttostr(Botn)); WriteConsole(0,IdtoName(ID)+' has just bought an ally for 10000 Cash',$EE81FAA1); end; end;
omg type conversion ;_;
@dnmr: forgot type extended for floattostr / strtofloat; Iuuno about char, but should be noted: Chr for Byte -> Char and Ord for Char -> Byte (which then can be InttoStr / StrtoInt`ed).
Quote from: DorkeyDear on April 14, 2010, 12:02:45 pm@dnmr: forgot type extended for floattostr / strtofloat; Iuuno about char, but should be noted: Chr for Byte -> Char and Ord for Char -> Byte (which then can be InttoStr / StrtoInt`ed).wellll, you could add word and whatnot you guys have in there. Never used them though, so didnt want to complicate things by using more weird terms |:
Unknown identifier 'HighestID'