PDA

View Full Version : [uscript] error



mic1989
1st June 2005, 19:20
Error in MyInteraction.uc (280): Unrecognized member 'AnnounceNewPlayerJoiningServer' in class 'HumanController'

I get this error when i was busy adding pbsay to my bot.

I have a Humancontroller.uc with

class HumanController extends PlayerController;
// this creates the humancontroller class that is inside of apg.u

function AnnounceNewPlayerJoiningServer(string Msg)
{} in it
and the call to that is good too(in my opinion)



exec function PBSay(String Msg)
{
HumanController(MyController).AnnounceNewPlayerJoi ningServer("PunkBuster Client: " $Msg);
}

Ping_pong
1st June 2005, 19:36
you need to compile an AGP make a folder called AGP with classes in it and make a humancontroller.UC and compile the AGP folder.

The exec function needs to be pasted IN the Bot! Not in the human controller :x

mic1989
1st June 2005, 20:52
you need to compile an AGP make a folder called AGP with classes in it and make a humancontroller.UC and compile the AGP folder.

The exec function needs to be pasted IN the Bot! Not in the human controller :x
it is pasted in the bot, im not that DUMB :dead:
and ofcourse i also set AGP.U as dependencie while compiling my bot.

so? any1 else


edit:
hm..for some reason i had my old own agp.u in my system folder..it fixed now
ty :)