Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Another 1 New error and I just don't know where it is!
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#16
RE: Another 1 New error and I just don't know where it is!

Quote:I'm really sorry to disturb you but I got another 1 error and I can't find it in my script file, I updated the topic so i can show the new error! can you find it because you're just professional at finding hidden errors!

First of all, i'm not professional. Those are really easy things, you keep doing the same error - you keep putting void in another void. For example it should be done this way:

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""herpti""derpti""true",1);
}

void derpti(string &in asParentstring &in asChildint alState)
{
SetEntityActive("Penis_monster"true);


And you keep putting it in void, like this:

PHP Code: (Select All)
void OnStart()
{
void derpti(string &in asParentstring &in asChildint alState)
SetEntityActive("Penis_monster"true);
AddEntityCollideCallback("Player""herpti""derpti""true",1);

That's not right, okay? You must do it in the same way as I posted first. (the herpti derpti thing)

About the script thing, I think i fixed it. Try it out.

PHP Code: (Select All)
void OnStart()
{
wakeUp();
}

void wakeUp() {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(10); // Amount of seconds the fade in takes
FadeImageTrailTo(22);
FadeSepiaColorTo(1004);
SetPlayerActive(false); 
FadePlayerRollTo(50220220); // "Tilts" the players head
FadeRadialBlurTo(0.52);
SetPlayerCrouching(true); // Simulates being on the ground
PlayMusic("18_amb.ogg"true141true);
AddEntityCollideCallback("Player""AreaCollide""EventCollide""true"1);
AddTimer("trig1"4.0f"beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer) {
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(03333); // Change all settings to defaults
FadeRadialBlurTo(0.01);
FadeSepiaColorTo(04);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
SetPlayerLampOil(35);
AddUseItemCallback("""HollowNeedle""CellDoor""UseHollowNeedleOnDoor"true);
}

void UseHollowNeedleOnDoor(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("CellDoor"falsetrue);
PlaySoundAtEntity("""unlock_door.ogg"asEntity0false);
RemoveItem(asItem);
}

void EventCollide(string &in asParentstring &in asChildint alState)
{
SetEntityActive("CellGuardGrunt"true);
AddEnemyPatrolNode("CellGuardGrunt""Node_1"0.001f"");
AddEnemyPatrolNode("CellGuardGrunt""Node_5"0.001f"");
AddEnemyPatrolNode("CellGuardGrunt""Node_13",0.001f"");
AddEnemyPatrolNode("CellGuardGrunt""Node_18",0.001f"");
AddEnemyPatrolNode("CellGuardGrunt""Node_19",0.001f"");
AddEnemyPatrolNode("CellGuardGrunt""Node_20",0.001f"");
AddEnemyPatrolNode("CellGuardGrunt""Node_21",0.001f""); 

01-06-2014, 11:26 AM
Find


Messages In This Thread
RE: Help with coding! - by ClayPigeon - 01-05-2014, 07:06 PM
RE: Another 1 New error and I just don't know where it is! - by Slanderous - 01-06-2014, 11:26 AM



Users browsing this thread: 4 Guest(s)