My Elevators -
Criss_Angel - 02.07.2009
http://pastebin.com/m10599da3
hi guys thats the link its a filterscript but i cant seem to see the Elevators IG please help
Re: My Elevators -
dice7 - 02.07.2009
CreatePickup(model,type,Float:X,Float:Y,Float:Z)
https://sampwiki.blast.hk/wiki/PickupGuide
https://sampwiki.blast.hk/wiki/CreatePickup
Re: My Elevators -
*ToM* - 02.07.2009
First of all, uncomment the line //#define FILTERSCRIPT to make it really a Filterscript
pawn Код:
#
// uncomment the line below if you want to write a filterscript
#
//#define FILTERSCRIPT
Just remove these two line " // " before the #define FILTERSCRIPT.
And on server.cfg add on the filterscripts thename of the filterscript, so for example the name of the fs is "elevators" so you have to add
' filterscripts elevator'
Re: My Elevators -
Criss_Angel - 02.07.2009
Quote:
Originally Posted by dice7
|
Yesi know and for Toniu_ i get these errors
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (44) : warning 217: loose indentation
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (44) : warning 219: local variable "Griffinstop" shadows a variable at a preceding level
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (46) : error 001: expected token: ";", but found "new"
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (46) : warning 219: local variable "Griffins" shadows a variable at a preceding level
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (49) : error 001: expected token: ";", but found "-identifier-"
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (51) : warning 213: tag mismatch
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (51) : warning 213: tag mismatch
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (51) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (51) : warning 202: number of arguments does not match definition
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (54) : warning 217: loose indentation
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (49) : warning 204: symbol is assigned a value that is never used: "Griffins"
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (51) : warning 204: symbol is assigned a value that is never used: "Griffinstop"
C:\DOCUME~1\k\Desktop\Server\FILTER~1\elevator.pwn (86) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Re: My Elevators -
refshal - 02.07.2009
You probably missed a bracket.
Re: My Elevators -
Criss_Angel - 02.07.2009
Quote:
Originally Posted by cοοp
You probably missed a bracket.
|
i have the filterscript now it loads up but when i go IG i crash i tried 7 times why i crash?
Re: My Elevators -
ACERS - 02.07.2009
ummm ...
I fixed all errors and warnings..
Here:
Код:
#include <a_samp>
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#define COLOR_GRAD1 0xF3F3F3FF
#define COLOR_GRAD2 0xE2E2E2FF
#define COLOR_GRAD3 0xD2D2D2FF
#define COLOR_BLUE 0x0000CC
#define COLOR_COPLEE 0x920E59FF
#define COLOR_GRAD4 0xC8C8C8FF
#define COLOR_GRAD5 0xEBFFD6FF
#define COLOR_GRAD6 0xE8FFFFFF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x00FF00FF
#define COLOR_LEE 0x820041FF
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0xE6FFEDFF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_YELLOW2 0xE8D600FF
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_OOC 0x797900FF
new Griffinstop;
new Griffins;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
Griffins = CreatePickup(1318,23,2621.3857,2831.6211,10.8203); // this is the griffins 1st elevator at the ground
Griffinstop = CreatePickup(1318,23,2595.4233,2638.9695,109.1719); // this is the griffins elevator which is on the Chimney
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Griffins)
if(GetPlayerTeam(playerid) == 0)
SetPlayerPos(playerid,2593.3577,2638.0403,115.0313);
{
if(pickupid == Griffinstop)
if(GetPlayerTeam(playerid) == 0)
SetPlayerPos(playerid,2625.8611,2827.7629,10.8203);
return 1;
}
}
If it crashes reply..
Note: I edited Griffinstop = CreatePickup(1318,23,2595.4233,2638.9695,109.1719) ; // this is the griffins elevator which is on the Chimney
Because the model + type was missing so just edit them to ur needs
Re: My Elevators -
saiberfun - 02.07.2009
delete line 62 and 64,
add ; to line44 and line46
pawn Код:
//line 51
Griffinstop = CreatePickup(1318,23,2595.4233,2638.9695,109.1719);
and the warnings ull get that (aka loose indentation) u can ignore
Re: My Elevators -
Criss_Angel - 02.07.2009
it compiled but when i run it i enter the pickup but nothing haappens :S
Re: My Elevators -
ACERS - 02.07.2009
Umm ... Did u use the player class which is id 0 ?