[Include] [INC] WInts - Wolly's Interiors
#21

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?
Reply
#22

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

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>
Reply
#24

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
Reply
#25

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

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.
Reply
#27

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

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
Reply
#29

Oh ok thanks Good script.
Reply
#30

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

graeat script
Reply
#32

Update 1.01:

- some small corrections to prevent potential bugs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)