SA-MP Forums Archive
[Include] [INC] WInts - Wolly's Interiors - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] WInts - Wolly's Interiors (/showthread.php?tid=121520)

Pages: 1 2


Re: [INC] WInts - Wolly's Interiors - pierhs - 24.01.2010

Quote:
Originally Posted by Juanxz
Error:
Код:
gamemodes\SP.pwn(234) : error 017: undefined symbol "Wints_Init"
Код:
public OnGameModeInit()
{
	for (new i = 0; i < MAX_PLAYERS; i++)
	{
	  // Check if player is connected and not a NPC
	  if (IsPlayerConnected(i) && !IsPlayerNPC(i))
	  {
	    // Set the default speed boost for each player
	    SpeedBoostMultiplier[i] = 1.5;
	  }
	}
 	Msg = 0;
 	SetTimer("GlobalAnnouncement",100000,true);
  Wints_Init();
	SetTimer("UpdateCmdFreq",2000,1);
  StartSystem();
	SetTimer("AutoR", 1000, 1);
  	UsePlayerPedAnims();
	EnableStuntBonusForAll(true);
	AllowInteriorWeapons(true);
	SetGameModeText("Stunt/RP/Free Roam/DM");
  for(new i = 0; i < 299; i++)
  {
What the f is going on here?
Are u sure that u added the include in your script?


Re: [INC] WInts - Wolly's Interiors - Juanxz - 24.01.2010

I moved the include into pawno/includes was I supposed to copy the insides and paste it in the gamemode?


Re: [INC] WInts - Wolly's Interiors - pierhs - 24.01.2010

Quote:
Originally Posted by Juanxz
I moved the include into pawno/includes was I supposed to copy the insides and paste it in the gamemode?
Add this :
Код:
#include <wints>
below #include <a_samp>


Re: [INC] WInts - Wolly's Interiors - :wollodya: - 24.01.2010

Quote:
Originally Posted by Chuck_Taylor
Quote:
Originally Posted by Juanxz
I moved the include into pawno/includes was I supposed to copy the insides and paste it in the gamemode?
Add this :
Код:
#include <wints>
below #include <a_samp>
I will add this into installation instructions thanks Chuck_Taylor


Re: [INC] WInts - Wolly's Interiors - pierhs - 25.01.2010

I replaced your vehicle id with the id 594 which is very small and now I can use it almost everywhere


Re: [INC] WInts - Wolly's Interiors - Juanxz - 25.01.2010

Ok my current problem is that I don't have "OnPlayerInteriorChange" in my gamemode. I added "#include <wints>" and also...when I compiled it before putting in the last line "Wints_OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid); put into OnPlayerInteriorChange public" I get
Код:
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\pawno\include\cps.inc(140) : error 021: symbol already defined: "floatsqroot"
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\pawno\include\cps.inc(141) : error 010: invalid function or declaration
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2337) : warning 219: local variable "vx" shadows a variable at a preceding level
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2337) : warning 219: local variable "vy" shadows a variable at a preceding level
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2337) : warning 219: local variable "vz" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: [INC] WInts - Wolly's Interiors - Norn - 25.01.2010

I like it but why not just use keys or a timer that checks the players location?


Re: [INC] WInts - Wolly's Interiors - :wollodya: - 25.01.2010

Quote:
Originally Posted by Chuck_Taylor
I replaced your vehicle id with the id 594 which is very small and now I can use it almost everywhere
it's ok ..good idea


Quote:
Originally Posted by Juanxz
Ok my current problem is that I don't have "OnPlayerInteriorChange" in my gamemode. I added "#include <wints>" and also...when I compiled it before putting in the last line "Wints_OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid); put into OnPlayerInteriorChange public" I get
Код:
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\pawno\include\cps.inc(140) : error 021: symbol already defined: "floatsqroot"
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\pawno\include\cps.inc(141) : error 010: invalid function or declaration
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2337) : warning 219: local variable "vx" shadows a variable at a preceding level
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2337) : warning 219: local variable "vy" shadows a variable at a preceding level
C:\Documents and Settings\Juan & Miguel\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(2337) : warning 219: local variable "vz" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
if you dont have OnPlayerInteriorChange in your GM, just put this:

Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	Wints_OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid);
	return 1;
}
warnings that local variable "vz (vy, vx)" shadows a variable at a preceding level mean that in your GM are used variables named vz, vy, vx so you could rename these variables (variables in your gm)


Quote:
Originally Posted by Norn
I like it but why not just use keys or a timer that checks the players location?
why use timer, when exists an callback for this? timer is unuseless load for your server


Re: [INC] WInts - Wolly's Interiors - Juanxz - 26.01.2010

Oh ok thanks Good script.


Re: [INC] WInts - Wolly's Interiors - :wollodya: - 30.01.2010

Quote:
Originally Posted by Juanxz
Oh ok thanks Good script.
..any questions are welcome


Re: [INC] WInts - Wolly's Interiors - proG(r)a(m)mer - 23.02.2010

graeat script


Re: [INC] WInts - Wolly's Interiors - :wollodya: - 22.03.2010

Update 1.01:

- some small corrections to prevent potential bugs