0 Members and 1 Guest are viewing this topic.
inisave('Players/'+GetPlayerStat(i,'Name')+'.ini',iniLoad('Players/'+GetPlayerStat(ID,'Name')+'.ini'));
procedure AppOnIdle(Ticks: integer);beginTimer:=Timer - 1;if Timer = 0 then beginWriteconsole(0,'Saving all accounts...',$0000FFFF);//Command('/save');for i:= 1 to 32 do if Getplayerstat(i,'Ping') > 0 then begininiWrite('Players/'+GetPlayerStat(i,'Name')+'.ini','stats','kills',inttostr(trKills[i]));iniWrite('Players/'+GetPlayerStat(i,'Name')+'.ini','stats','tupred',inttostr(TUPred[i]));iniWrite('Players/'+GetPlayerStat(i,'Name')+'.ini','stats','barkills',inttostr(barKills[i]));inisave('Players/'+GetPlayerStat(i,'Name')+'.ini',iniLoad('Players/'+GetPlayerStat(i,'Name')+'.ini'));end;iniWrite('scripts/Shop/profit.ini','profit','cash',inttostr(Cash));Sleep(2000);Timer:=300;Writeconsole(0,'Done!',$0000FFFF);end;end;
umm hold up, for startas, each time i posted, the code was different, so how is it i did not even try to read what you posted? links and such? btw Dark, that code is giving me a syntax error, says line 26, but i dont see where the error is on any of those lines
if Getplayerstat(i,'Ping') > 0 then begin
Achievement -> [Error] (25:166): Syntax error
if (RayCast(x,y,x2,y2,Dist,200)) AND (if i <> Killer) AND (GetPlayerStat(i,'Alive') = true) AND (GetPlayerStat(i,'Team') <> GetPlayerStat(Killer,'Team')) then begin
edit2: server is still hanging when i use barret, wtf?? FFS THIS f**kING STUPID SERVER, see attached achievement.pas
var x, y, x2, y2: single; team: byte;// ... if Weapon = 'Barrett M82A1' then begin team := GetPlayerStat(Killer,'Team'); GetPlayerXy(Victim, x, y); for i := 1 to 32 do if i <> Killer then if GetPlayerStat(i,'Alive') = true then if GetPlayerStat(i,'Team') <> team then begin GetPlayerXY(i, x2, y2); if RayCast(x,y,x2,y2,Dist,400) then begin DoDamageBy(i,Killer,200); BioKills[Killer]:=BioKills[Killer]+1; end; end; WriteConsole(Killer,'Bio-Kills: '+Inttostr(BioKills[Killer]),$EE81FAA1); BioKills[Killer]:=0; end;
Quoteedit2: server is still hanging when i use barret, wtf?? FFS THIS f**kING STUPID SERVER, see attached achievement.pasIt's not because of the "f**kING STUPID SERVER" but your horrible code. No surprise it hangs on it.replace the barret part withCode: [Select]var x, y, x2, y2: single; team: byte;// ... if Weapon = 'Barrett M82A1' then begin team := GetPlayerStat(Killer,'Team'); GetPlayerXy(Victim, x, y); for i := 1 to 32 do if i <> Killer then if GetPlayerStat(i,'Alive') = true then if GetPlayerStat(i,'Team') <> team then begin GetPlayerXY(i, x2, y2); if RayCast(x,y,x2,y2,Dist,400) then begin DoDamageBy(i,Killer,200); BioKills[Killer]:=BioKills[Killer]+1; end; end; WriteConsole(Killer,'Bio-Kills: '+Inttostr(BioKills[Killer]),$EE81FAA1); BioKills[Killer]:=0; end;