Hi,
Hab mir Heute den Ganzen Tag vorgenommen ein Script zu basteln.
Soweit sogut hier aber das Problem:
Ich habe mir ne Base gescriptet + Teleport CMD'S. Hat alles Perfekt Funktioniert. Dann aber wollte ich noch ein Heal cmd reinbauen. Hat am anfang voll viele Fehler gebracht. Dann hab ich es rausgenommen. Jetzt geht plötzlich nichtsmehr -.-. Wenn ich mehr als 1 cmd habe gibts ständig probs. Hab auch versucht nen neues script zumachen mit den wichtigsten alten daten. Bringt aber nichts -.-
Hier Mein Script :
#include <a_samp>
static gTeam[MAX_PLAYERS];
// Team Define'S
#define TEAM_LCN 0
#define TEAM_YAKUZA 1
// WAFFEN ID'S
// "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 22(Pistol) 23(SPistol)");
//"24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 41(spray) 42(exting) 46(Parachute)");
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Conny293 Test");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Conny293 Test");
AddPlayerClass(113, 1697.378, -1667.5, 20.19535, 90.0000, 24, 250, 29, 1000, 30, 500);
AddPlayerClass(123, 3136.060791, 2119.172119, 1.0000, 90.0000, 24, 250, 31, 1000, 0, 0);
//LCN BASE zäune usw.
//Wasservbase zäune usw.
CreateObject(6117, 2989.758789, 2118.514160, 0.918651, 0.0000, 0.0000, 0.0000);
CreateObject(2939, 2945.666016, 2111.206787, 8.623405, 0.0000, 0.0000, 90.0002);
CreateObject(2939, 2951.070313, 2111.166016, 6.316396, 0.0000, 0.0000, 90.0002);
CreateObject(2939, 2956.495117, 2111.181885, 3.952477, 0.0000, 0.0000, 90.0002);
CreateObject(2939, 2961.296875, 2111.123535, 1.868691, 0.0000, 0.0000, 90.0002);
CreateObject(2939, 2964.945068, 2110.977783, 0.298407, 0.0000, 0.0000, 90.0002);
CreateObject(16771, 3125.087158, 2119.268799, 7.297577, 0.0000, 0.0000, 90.0000);
CreateObject(6117, 3065.719971, 2118.512939, 0.903858, 0.0000, 0.0000, 0.0000);
CreateObject(3359, 3141.930664, 2134.222656, 0.744422, 0.0000, 0.0000, 270.0000);
CreateObject(3749, 3102.063721, 2118.715576, 6.682586, 0.0000, 0.0000, 270.0000);
CreateObject(985, 3103.432129, 2130.763428, 2.178556, 0.0000, 0.0000, 270.0000);
CreateObject(985, 3103.423340, 2104.965332, 2.362132, 0.0000, 0.0000, 270.0000);
CreateObject(9241, 3119.552490, 2119.540771, 15.938534, 0.0000, 0.0000, 180.0002);
CreateObject(8209, 3053.647217, 2109.106445, 3.989260, 0.0000, 0.0000, 359.9999);
CreateObject(8209, 3053.703857, 2128.217041, 4.005644, 0.0000, 0.0000, 180.0000);
CreateObject(8209, 2954.227539, 2128.224365, 3.998574, 0.0000, 0.0000, 180.0000);
CreateObject(8209, 2954.158203, 2109.091553, 3.956431, 0.0000, 0.0000, 359.9999);
CreateObject(12990, 3161.781494, 2127.463135, 0.671452, 0.0000, 0.0000, 90.0000);
// FAHRZEUGE
// LCN
// Yakuza
AddStaticVehicle(487,3119.479004,2119.400635,16.804661,90.0000,1,1); //heli aufm dach
AddStaticVehicle(522,3142.269043,2132.024902,1.0000,90.0000,1,1); //NRG 1
AddStaticVehicle(522,3142.153809,2138.049072,1.0000,90.0000,1,1); //NRG 2
//AddStaticVehicle(ID,XX,YY,ZZ,WINKEL,1,1); //Sultan 1 -brauch noch coords
//AddStaticVehicle(ID,XX,YY,ZZ,WINKEL,1,1); //Sultan 2 -^^
//AddStaticVehicle(ID,XX,YY,ZZ,WINKEL,1,1); //Burrito 1-^^
//AddStaticVehicle(ID,XX,YY,ZZ,WINKEL,1,1); //Burrito 2-^^
AddStaticVehicle(493,3169.133545,2134.463623,0.311016,270,1,1); //Boot 1
AddStaticVehicle(493,3168.801514,2119.515137,0.426736,270,1,1); //Boot 2
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0) //wenn der Spieler den ersten Skin auswählt
{
gTeam[playerid] = TEAM_LCN;
}
if(classid == 1) //wenn der Spieler den zweiten Skin auswählt
{
gTeam[playerid] = TEAM_YAKUZA;
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
//---------------------------------------- LCN BEFEHLE !-------------------------------
{
if(strcmp("/lcnbase",cmdtext,true) == 0)
{
if(gTeam[playerid] == TEAM_LCN)
{
SetPlayerPos(playerid,1673.354,-1691.544,22.43923);
SendClientMessage(playerid,0x00FF00FF,"Du bist nun in der LCN Base!");
}
else
{
SendClientMessage(playerid,0xFF0000FF,"$$$ LCN 4 LIFE $$$!");
}
return 1;
}
//----------------------------------------------LCN BEFEHLE END !------------------------------------
if(strcmp("/me?",cmdtext,true) == 0)
{
if(gTeam[playerid] == TEAM_LCN) GameTextForPlayer(playerid,"$$$ LCN 4 LIFE $$$",3000,4);
if(gTeam[playerid] == TEAM_YAKUZA) GameTextForPlayer(playerid,"$$$ YAKUZA 4 LIFE $$$",3000,4);
return 1;
}
// ----------------------------------------------YAKUZA BEFEHLE!-------------------------------
if(strcmp("/yakbase",cmdtext,true) == 0)
{
if(gTeam[playerid] == TEAM_YAKUZA)
{
SetPlayerPos(playerid,3136.060791,2119.172119,1.00000);
SendClientMessage(playerid,0x00FF00FF,"Du bist nun in der YAKUZA Base!");
}
else
{
SendClientMessage(playerid,0xFF0000FF,"$$$ YAKUZA 4 LIFE $$$!");
}
return 1;
}
if(strcmp("/yakheli",cmdtext,true) == 0)
{
if(gTeam[playerid] == TEAM_YAKUZA)
{
SetPlayerPos(playerid,3122.140625,2133.356201,15.0000);
SendClientMessage(playerid,0x00FF00FF,"FLY FOR FUN!");
}
else
{
SendClientMessage(playerid,0xFF0000FF,"FLIEG AUF DIE FRESSE!");
}
return 1;
if(strcmp("/yakboot",cmdtext,true) == 0)
{
if(gTeam[playerid] == TEAM_YAKUZA)
{
SetPlayerPos(playerid,3149.395752,2127.544678,0.970447);
SendClientMessage(playerid,0x00FF00FF,"SCHLAF BEI DEN FISCHEN!");
}
else
{
SendClientMessage(playerid,0xFF0000FF,"ERSAUF DU FISCHKOPF!");
}
return 1;
}
//----------------------------------------------------YAKUZA ENDE !----------------------------------
public OnPlayerInfoChange(playerid)
{
return 1;
}
Wo liegt/liegen der/die Problem/e ?
:
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(259) : warning 225: unreachable code
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(259) : error 029: invalid expression, assumed zero
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(259) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(264) : warning 225: unreachable code
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(264) : error 029: invalid expression, assumed zero
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(264) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(269) : warning 225: unreachable code
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(269) : error 029: invalid expression, assumed zero
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(269) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(274) : warning 225: unreachable code
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(274) : error 029: invalid expression, assumed zero
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(274) : error 004: function "OnRconCommand" is not implemented
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(279) : warning 225: unreachable code
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(279) : error 029: invalid expression, assumed zero
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(279) : error 004: function "OnObjectMoved" is not implemented
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(284) : warning 225: unreachable code
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(284) : error 029: invalid expression, assumed zero
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(284) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(289) : warning 225: unreachable code
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(289) : error 029: invalid expression, assumed zero
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(289) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(294) : warning 225: unreachable code
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(294) : error 029: invalid expression, assumed zero
C:\Games\Grand Theft Auto San Andreas\gamemodes\CTR-TEST.pwn(294) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Was kann ich dagegen Tuen?