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
What's wrong with this script?
Shadowfied Offline
Senior Member

Posts: 261
Threads: 34
Joined: Jul 2010
Reputation: 5
#1
What's wrong with this script?

Sorry guys, I just can't find out why this script won't work.

Spoiler below!
PHP Code: (Select All)
void BlueRodFunc (string &in asItemstring &in asEntity)
{
    
RemoveItem(asItem);
    
SetEntityActive("BlueStatic"true);
    
AddGlobalVarInt("rodmachine"1);
    
GetGlobalVarInt("rodmachine");
    {
    if(
GetGlobalVarInt("rodmachine") == 0)
    
//..
    
}
    if(
GetGlobalVarInt("rodmachine") == 1)
    {
    
//..
    
}
    if(
GetGlobalVarInt("rodmachine") == 2)
    {
    
//..
    
}
    if(
GetGlobalVarInt("rodmachine") == 3)
    {
    
SetMessage("Messages""DoneRodsQuestM"0);
    
CompleteQuest("rodq""RodsQuest"); 
    }



Any ideas?

Current - Castle Darkuan
Other - F*cked Map
(This post was last modified: 02-27-2012, 12:08 PM by Shadowfied.)
02-27-2012, 10:35 AM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: What's wrong with this script?

GetGlobalVarInt("rodmachine");
{
if(GetGlobalVarInt("rodmachine") == 0)
//..
}

Switch the if line and the opening brace. Also GetGlobalVarInt("rodmachine"); does nothing by itself. No reason to have it there.

(This post was last modified: 02-27-2012, 10:51 AM by palistov.)
02-27-2012, 10:50 AM
Find
Shadowfied Offline
Senior Member

Posts: 261
Threads: 34
Joined: Jul 2010
Reputation: 5
#3
RE: What's wrong with this script?

(02-27-2012, 10:50 AM)palistov Wrote: GetGlobalVarInt("rodmachine");
{
if(GetGlobalVarInt("rodmachine") == 0)
//..
}

Switch the if line and the opening brace. Also GetGlobalVarInt("rodmachine"); does nothing by itself. No reason to have it there.
Thanks man!



Current - Castle Darkuan
Other - F*cked Map
02-27-2012, 10:53 AM
Find




Users browsing this thread: 2 Guest(s)