Hallo.
Ich hab hier i-wie was voll dummes.!!
Ich wollte Tore machen für LSPD und hab die auch definiert per new PDi_gate; (usw. halt)
Ich bekomme dennoch Error das es nicht definiert ist!?
Hier das ganze FS:
PHP
#include <a_samp>
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#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 0xE0FFFFAA
#if defined FILTERSCRIPT
new PDi_gate;
new PDg_gate,
new PDt_gate;
// neu (Tore, usw.)
public OnFilterScriptInit()
{
PDi_gate = CreateObject(980, 1586.805298, -1637.933228, 15.063852, 0.000000, 0.000000, 0.000000);
PDg_gate = CreateObject(987, 1549.543945, -1621.659546, 12.321878, 0.000000, 0.000000, -89.999981);
PDt_gate = CreateObject(1965, 1577.175049, -1637.303955, 13.986071, 0.000000, 0.000000, 0.000000);
print("\n--------------------------------------");
print(" PD-LS Base by luXuskerN");
print(" Thanks to Breadfish forum for help");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
CreateObject(8210, 1567.521484, -1602.737427, 15.750465, 0.000000, 0.000000, 180.00002);
CreateObject(987, 1539.833862, -1602.321167, 12.574196, 0.000000, 0.000000, -89.999981);
CreateObject(987, 1539.714111, -1617.598511, 12.546875, 0.000000, 0.000000, 0.000000);
CreateObject(987, 1539.858887, -1605.918213, 12.526399, 0.000000, 0.000000, -89.999981);
CreateObject(987, 1596.104370, -1637.903320, 12.466118, 0.000000, 0.000000, -360.00004);
CreateObject(985, 1550.835449, -1614.506958, 14.093480, 0.000000, 0.000000, 270.000001);
CreateObject(986, 1550.814331, -1606.539917, 14.093480, 0.000000, 0.000000, 270.000001);
CreateObject(3749, 1548.800171, -1627.594482, 18.241226, 0.000000, 0.000000, -89.999981);
CreateObject(8154, 1566.227417, -1629.381836, 15.647902, 0.000000, 0.000000, 89.999981);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/PDiTa", true) == 0){
MoveObject(PDi_gate, 1586.809448, -1637.887817, 9.508661,8);
return 1;
}
if (strcmp(cmdtext, "/PDiTz", true) == 0){
MoveObject(PDi_gate, 1586.805298, -1637.933228, 15.063852,8);
return 1;
}
if (strcmp(cmdtext, "/PDgTa", true) == 0){
MoveObject(PDg_gate, 1549.556641, -1621.666504, 6.171937,8);
return 1;
}
if (strcmp(cmdtext, "/PDgTz", true) == 0){
MoveObject(PDg_gate, 1549.543945, -1621.659546, 12.321878,8);
return 1;
}
if (strcmp(cmdtext, "/PDTa", true) == 0){
MoveObject(PDt_gate, 1577.428345, -1635.706421, 14.001038,8);
return 1;
}
if (strcmp(cmdtext, "/PDTz", true) == 0){
MoveObject(PDt_gate, 1577.175049, -1637.303955, 13.986071,8);
return 1;
}
return 0;
}
Alles anzeigen