hii leute ich wollte mal fragen ob es ein bomben script gibt
z.b. so mann stellt die rucksack bomben vor sein haus und wenn einer kommt wenn mann /bombe schreibt dan explodiert es
danke schon mal im voraus
hii leute ich wollte mal fragen ob es ein bomben script gibt
z.b. so mann stellt die rucksack bomben vor sein haus und wenn einer kommt wenn mann /bombe schreibt dan explodiert es
danke schon mal im voraus
kannst du es bitte genauer beschreiben ich check des so nicht bin kein profi scripter
new Bombe[MAX_PLAYERS];
forward PlantBomb(playerid);
forward ExplodeBomb(playerid);
public PlantBomb(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
Bombe[playerid] = CreateObject(modelid, x, y, z, 0, 0, 0);// modelid in rucksack id ändern
return 1;
}
public ExplodeBomb(playerid)
{
DestroyObject(Bombe[playerid]);
new Float:Ox, Float:Oy, Float:Oz;
GetPlayerObjectPos(playerid, Bombe[playerid], Ox, Oy, Oz);
CreateExplosion(Ox,Oz,Oy,7,50);
return 1;
}
OnplayerCommandtext
if (strcmp("/plantBomb", cmdtext, true, 10) == 0)
{
PlantBomb(playerid);
return 1;
}
if (strcmp("/Bomb", cmdtext, true, 10) == 0)
{
ExplodeBomb(playerid);
return 1;
}
bei mir kommen i wie 17 Errors raus
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(241) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(4) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(11) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptInit")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(13) : error 017: undefined symbol "print"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(14) : error 017: undefined symbol "print"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(15) : error 017: undefined symbol "print"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(19) : warning 235: public function lacks forward declaration (symbol "OnFilterScriptExit")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(24) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(27) : error 017: undefined symbol "SetGameModeText"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(28) : error 017: undefined symbol "AddPlayerClass"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(32) : warning 235: public function lacks forward declaration (symbol "OnGameModeExit")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(37) : warning 235: public function lacks forward declaration (symbol "OnPlayerRequestClass")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(39) : error 017: undefined symbol "SetPlayerPos"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(40) : error 017: undefined symbol "SetPlayerCameraPos"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(41) : error 017: undefined symbol "SetPlayerCameraLookAt"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(45) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(50) : warning 235: public function lacks forward declaration (symbol "OnPlayerDisconnect")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(55) : warning 235: public function lacks forward declaration (symbol "OnPlayerSpawn")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(60) : warning 235: public function lacks forward declaration (symbol "OnPlayerDeath")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(65) : warning 235: public function lacks forward declaration (symbol "OnVehicleSpawn")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(70) : warning 235: public function lacks forward declaration (symbol "OnVehicleDeath")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(75) : warning 235: public function lacks forward declaration (symbol "OnPlayerText")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(80) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(82) : error 017: undefined symbol "strcmp"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(87) : error 017: undefined symbol "strcmp"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(92) : warning 217: loose indentation
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(95) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterVehicle")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(100) : warning 235: public function lacks forward declaration (symbol "OnPlayerExitVehicle")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(105) : warning 235: public function lacks forward declaration (symbol "OnPlayerStateChange")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(110) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterCheckpoint")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(115) : warning 235: public function lacks forward declaration (symbol "OnPlayerLeaveCheckpoint")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(120) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterRaceCheckpoint")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(125) : warning 235: public function lacks forward declaration (symbol "OnPlayerLeaveRaceCheckpoint")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(130) : warning 235: public function lacks forward declaration (symbol "OnRconCommand")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(135) : warning 235: public function lacks forward declaration (symbol "OnPlayerRequestSpawn")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(140) : warning 235: public function lacks forward declaration (symbol "OnObjectMoved")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(145) : warning 235: public function lacks forward declaration (symbol "OnPlayerObjectMoved")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(150) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickUpPickup")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(155) : warning 235: public function lacks forward declaration (symbol "OnVehicleMod")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(160) : warning 235: public function lacks forward declaration (symbol "OnVehiclePaintjob")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(165) : warning 235: public function lacks forward declaration (symbol "OnVehicleRespray")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(170) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectedMenuRow")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(175) : warning 235: public function lacks forward declaration (symbol "OnPlayerExitedMenu")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(180) : warning 235: public function lacks forward declaration (symbol "OnPlayerInteriorChange")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(185) : warning 235: public function lacks forward declaration (symbol "OnPlayerKeyStateChange")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(190) : warning 235: public function lacks forward declaration (symbol "OnRconLoginAttempt")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(195) : warning 235: public function lacks forward declaration (symbol "OnPlayerUpdate")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(200) : warning 235: public function lacks forward declaration (symbol "OnPlayerStreamIn")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(205) : warning 235: public function lacks forward declaration (symbol "OnPlayerStreamOut")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(210) : warning 235: public function lacks forward declaration (symbol "OnVehicleStreamIn")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(215) : warning 235: public function lacks forward declaration (symbol "OnVehicleStreamOut")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(220) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(225) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickPlayer")
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(233) : error 017: undefined symbol "GetPlayerPos"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(234) : error 017: undefined symbol "CreateObject"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(232) : warning 203: symbol is never used: "z"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(232) : warning 203: symbol is never used: "y"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(232) : warning 203: symbol is never used: "x"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(240) : error 017: undefined symbol "DestroyObject"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(242) : error 017: undefined symbol "GetPlayerObjectPos"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(243) : error 017: undefined symbol "CreateExplosion"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(241) : warning 203: symbol is never used: "Oz"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(241) : warning 203: symbol is never used: "Oy"
C:\Users\Yunus Bostan\Documents\Neuer Ordnerm\gamemodes\bombe.pwn(241) : warning 203: symbol is never used: "Ox"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
17 Errors.
Alles anzeigen
Bei mir kommen keine Errors hast du es falsch eingefügt?
Die publics nach ganz unten ins script.
Die befehle nach onplayercommandtext.
Die news und forwards zu den anderen forwards und news.
habs gemacht wie es beschrieben ist aber des nicht kann mir einer über icq /teamviewer helfen
icq : 460 632 880
msn : yunus-93@hotmail.de
Du hast aber schon die Sa-Mp include mit im Script?
ja klar
Kann das sein das es daran liegt weil du einen anderen Streamer verwendest der nicht diese Funktion hat?
Oder arbeitest du überhaupt mit nem Streamer?
BFX Steamer Downloaden, done.