SA-MP Forums Archive
Functions forwarded but still errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Functions forwarded but still errors (/showthread.php?tid=116969)



Functions forwarded but still errors - blubber - 30.12.2009

Код:
if (strcmp(cmdtext, "/ord", true)==0)
    {
      SetObjectRot(carrierdoor, 0,18,0 );
      SendClientMessage(playerid, 0xFF0000F, "Door is opening");
      SetTimer("stap1",100,false);
      public stap1()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  SetTimer("stap2",100,false);
		  }
		  public stap2()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  SetTimer("stap3",100,false);
		  }
		  public stap3()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  SetTimer("stap4",100,false);
		  }
		  public stap4()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  SetTimer("stap5",100,false);
		  }
		  public stap5()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  SetTimer("stap6",100,false);
		  }
		  public stap6()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  SetTimer("stap7",100,false);
		  }
		  public stap7()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  SetTimer("stap8",100,false);
		  }
		  public stap8()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  SetTimer("stap9",100,false);
		  }
		  public stap9()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  SetTimer("stap10",100,false);
		  }
		  public stap10()
		  {
		  SetObjectRot(carrierdoor, 0,18,0 );
		  }
      return 1;
    }
Код:
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(87) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(87) : error 004: function "stap1" is not implemented
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(92) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(92) : error 004: function "stap2" is not implemented
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(97) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(97) : error 004: function "stap3" is not implemented
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(102) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(102) : error 004: function "stap4" is not implemented
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(107) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(107) : error 004: function "stap5" is not implemented
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(112) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(112) : error 004: function "stap6" is not implemented
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(117) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(117) : error 004: function "stap7" is not implemented
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(122) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(122) : error 004: function "stap8" is not implemented
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(127) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(127) : error 004: function "stap9" is not implemented
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(132) : error 029: invalid expression, assumed zero
C:\Users\Willem\Desktop\GTA multiplayer\filterscripts\carrier.PWN(132) : error 004: function "stap10" is not implemented
Код:
forward stap1();
forward stap2();
forward stap3();
forward stap4();
forward stap5();
forward stap6();
forward stap7();
forward stap8();
forward stap9();
forward stap10();
I have nog idea what I'v done wrong, I've changed the names of the functions but it's keep telling that it is not implemented.
this is a part of a script and I've forwarded all functions



Re: Functions forwarded but still errors - MadeMan - 30.12.2009

Your functions are defined inside OnPlayerCommandText. Take them out of there.


Re: Functions forwarded but still errors - blubber - 30.12.2009

thank you it worked out really good