hedgewars/uStats.pas
changeset 9411 d95ac9992529
parent 9409 6564baf7dedf
child 9521 8054d9d775fd
child 9998 736015b847e3
equal deleted inserted replaced
9409:6564baf7dedf 9411:d95ac9992529
   310         
   310         
   311     ScriptCall('onAchievementsDeclaration');
   311     ScriptCall('onAchievementsDeclaration');
   312 end;
   312 end;
   313 
   313 
   314 procedure declareAchievement(id, teamname, location: shortstring; value: LongInt);
   314 procedure declareAchievement(id, teamname, location: shortstring; value: LongInt);
   315 begin
   315 begin 
   316     if (length(id) = 0) or (length(teamname) = 0) then exit;
   316 if (length(id) = 0) or (length(teamname) = 0) or (length(location) = 0) then exit;
   317     WriteLnToConsole('ACHIEVEMENT');
   317     WriteLnToConsole('ACHIEVEMENT');
   318     WriteLnToConsole(id);
   318     WriteLnToConsole(id);
   319     WriteLnToConsole(teamname);
   319     WriteLnToConsole(teamname);
   320     WriteLnToConsole(location);
   320     WriteLnToConsole(location);
   321     WriteLnToConsole(inttostr(value));
   321     WriteLnToConsole(inttostr(value));