PDA

View Full Version : Koth Code


Lemoni
25th Nov 2001, 04:50 AM
I AM TRYING TO USE CHIMERIC KOTH CODE BUT I GOT THIS ERROR: C:\UNREALTOURNAMENT\Koth\Classes\Kothscoreboard.uc(32) : Error, Redefinition of 'function DrawNameandPing' differs from original whats going on with the code?

Shiit
25th Nov 2001, 06:12 AM
You added a function that was already in a parent of the class. This is alright as long as the function has exactly the same IO format as the original. (same argument types, same return type)
I always override a function by just copy&pasting the original function without the code it contains, to prevent this trouble.

Lemoni
25th Nov 2001, 06:19 AM
heres the guilty bit
function DrawNameandPing(Canvas Canvas, PlayerReplicationInfo pri, float xOffset, float yOffset)
and heres the guilt code (in .txt)