I was hopeing somone can help.This is supposed to check if any other pcs are in the area if so stop script if no other pcs continue with script. but it does not compile please let me know what I did wrong and how to fix it. Sorry i'm dumb when it comes to scripting don't laugh please
void main(){object oPC = GetEnteringObject();if (!GetIsPC(oPC)) return;
int GetIsOtherPCsInArea(object oArea = OBJECT_SELF){ object oPC = GetFirstObjectInArea(oArea);if(!GetIsPC(oPC))oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR,PLAYER_CHAR_IS_PC,oPC); return (GetIsPC(oPC)) ? TRUE : FALSE;}
object A = CreateObject(OBJECT_TYPE_CREATURE, "corruptguard", GetLocation(GetWaypointByTag("SP_A")));object B = CreateObject(OBJECT_TYPE_CREATURE, "bandit", GetLocation(GetWaypointByTag("SP_B")));object C = CreateObject(OBJECT_TYPE_CREATURE, "bandit", GetLocation(GetWaypointByTag("SP_C")));}}