okay danke
Beiträge von aTraX
-
-
#include <a_samp>
// --------------------------------------------------
// Defines
// --------------------------------------------------// States
#define PLAYER_STATE_NONE (0)
#define PLAYER_STATE_ONFOOT (1)
#define PLAYER_STATE_DRIVER (2)
#define PLAYER_STATE_PASSENGER (3)
#define PLAYER_STATE_EXIT_VEHICLE (4) // (used internally)
#define PLAYER_STATE_ENTER_VEHICLE_DRIVER (5) // (used internally)
#define PLAYER_STATE_ENTER_VEHICLE_PASSENGER (6) // (used internally)
#define PLAYER_STATE_WASTED (7)
#define PLAYER_STATE_SPAWNED (8)
#define PLAYER_STATE_SPECTATING (9)// Misc
#define MAX_PLAYER_NAME (24)
#define MAX_PLAYERS (200)
#define MAX_VEHICLES (700)
#define INVALID_PLAYER_ID (255)
#define INVALID_VEHICLE_ID (0xFFFF)
#define NO_TEAM (255)
#define MAX_OBJECTS (150)
#define INVALID_OBJECT_ID (255)
#define MAX_GANG_ZONES (1024)
#define MAX_TEXT_DRAWS (1024)
#define MAX_MENUS (128)
#define INVALID_MENU (0xFF)
#define INVALID_TEXT_DRAW (0xFFFF)
#define INVALID_GANG_ZONE (-1)// Weapons
#define WEAPON_BRASSKNUCKLE (1)
#define WEAPON_GOLFCLUB (2)
#define WEAPON_NITESTICK (3)
#define WEAPON_KNIFE (4)
#define WEAPON_BAT (5)
#define WEAPON_SHOVEL (6)
#define WEAPON_POOLSTICK (7)
#define WEAPON_KATANA (8)
#define WEAPON_CHAINSAW (9)
#define WEAPON_DILDO (10)
#define WEAPON_DILDO2 (11)
#define WEAPON_VIBRATOR (12)
#define WEAPON_VIBRATOR2 (13)
#define WEAPON_FLOWER (14)
#define WEAPON_CANE (15)
#define WEAPON_GRENADE (16)
#define WEAPON_TEARGAS (17)
#define WEAPON_MOLTOV (18)
#define WEAPON_COLT45 (22)
#define WEAPON_SILENCED (23)
#define WEAPON_DEAGLE (24)
#define WEAPON_SHOTGUN (25)
#define WEAPON_SAWEDOFF (26)
#define WEAPON_SHOTGSPA (27)
#define WEAPON_UZI (28)
#define WEAPON_MP5 (29)
#define WEAPON_AK47 (30)
#define WEAPON_M4 (31)
#define WEAPON_TEC9 (32)
#define WEAPON_RIFLE (33)
#define WEAPON_SNIPER (34)
#define WEAPON_ROCKETLAUNCHER (35)
#define WEAPON_HEATSEEKER (36)
#define WEAPON_FLAMETHROWER (37)
#define WEAPON_MINIGUN (38)
#define WEAPON_SATCHEL (39)
#define WEAPON_BOMB (40)
#define WEAPON_SPRAYCAN (41)
#define WEAPON_FIREEXTINGUISHER (42)
#define WEAPON_CAMERA (43)
#define WEAPON_PARACHUTE (46)
#define WEAPON_VEHICLE (49)
#define WEAPON_DROWN (53)
#define WEAPON_COLLISION (54)// Keys
#define KEY_ACTION (1)
#define KEY_CROUCH (2)
#define KEY_FIRE (4)
#define KEY_SPRINT (8)
#define KEY_SECONDARY_ATTACK (16)
#define KEY_JUMP (32)
#define KEY_LOOK_RIGHT (64)
#define KEY_HANDBRAKE (128)
#define KEY_LOOK_LEFT (256)
#define KEY_SUBMISSION (512)
#define KEY_LOOK_BEHIND (512)
#define KEY_WALK (1024)
#define KEY_ANALOG_UP (2048)
#define KEY_ANALOG_DOWN (4096)
#define KEY_ANALOG_RIGHT (16384)
#define KEY_ANALOG_LEFT (8192)#define KEY_UP (65408)
#define KEY_DOWN (128)
#define KEY_LEFT (65408)
#define KEY_RIGHT (128)// --------------------------------------------------
// Forwards
// --------------------------------------------------forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
// --------------------------------------------------
// New
// --------------------------------------------------new menu:Drive-In;
new Menu:CurrentMenu = GetPlayerMenu(playerid);main()
{
print("\n----------------------------------");
print(" Script by Blizz ");
print("----------------------------------\n");
}public OnGameModeInit()
{
SetGameModeText("Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(105, 2483.1440, 2031.2065, 11.0625, 179.9051, 0, 0, 0, 0, 0, 0);
Drive-In = CreateMenu("Burgershot", 2, 233.0, 100.0, 150.0, 50.0);
AddMenuItem(Drive-In, 0, "Happy Meal");
AddMenuItem(Drive-In, 0, "Maxi Menu");
AddMenuItem(Drive-In, 0, "Chicken Mcnuggets");
return 1;
}public OnGameModeExit()
{
return 1;
}public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
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[])
{
if (strcmp("/drivein", cmdtext, true, 10) == 0)
{
ShowMenuForPlayer(Drive-In, playerid);
return 1;
}
}public OnPlayerInfoChange(playerid)
{
return 1;
}public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}public OnRconCommand(cmd[])
{
return 1;
}public OnObjectMoved(objectid)
{
return 1;
}public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}public OnPlayerSelectedMenuRow(playerid, row)
{
if(CurrentMenu == Drive-In)
{
switch(row)
{
case 0:
{
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -30);
}
case 1:
{
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -40);
}
case 2:
{
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -20);
}
return 1;
}public OnPlayerExitedMenu(playerid)
{
return 1;
}public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}Also wenn ich F5 drücke (compilen) dann kommt das hier:
-
Also wenn ich auf meinem Server bin und irgendeinen Command eingebe funktioniert er aber da steht unknown Command und das nervt ein bissl wie geht das wegg ?
danke schonmal im vorraus
mfg
fischer -
danke für die schnelle antwort
-
Also kann mir wer helfen ich finde es nirgendswo:
Wenn ich sterbe soll mein ganzes Geld verschwinden wie geht das ?
und
Wenn ich jemanden Töte möchte ich gerne 100$ verdienen wie geht das ?Bitte um eine schnelle antwort
Ich bedanke mich schonmal im Vorraus.
mfg
fischi ! -
hab nen anderen compiler genommen und da
meldet er mir nen fehler das ein subscript fehlt -
ne das psote ich net das soll keiner klauen war harte arbeit
-
das heißt ich muss 10k zeilen nachner klammer durchsuchen ?
-
Ein Gamemode mit ca 10K Zeilen
-
Hi ich benutze den normalen Samp Pawn Editor und immer wenn ich mein Script Compilen will kommt ein Fehler wo man Nict Senden und Problembericht Senden drücken kann was muss ich machen damit das nicht mehr kommt ?
-
-
-
-
-
ich hab noch zwei pickups mehr aber die hab ich drinn ide zeilen
pickupfbi = CreatePickup(1275,23,214.9212,125.6886,1003.2188);
pickupfby = CreatePickup(1559,23,1864.2283,1420.9668,16.9223);
pickupfbx = CreatePickup(1559,23,246.2327,109.1725,1003.2188);
pickupfbc = CreatePickup(1275,23,216.6094,125.6663,1003.2188); -
Also ich habe einen Timer erstellt aber wenn ich dann KillTimer("fbiinjob") bei dem anderen pickup hab ich ein error
CodeC:\Dokumente und Einstellungen\Fischer\Desktop\samp022server.win32\gamemodes\blizz.pwn(210) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
wenn man in ein pickup reingeht:
if(pickupid == pickupfbi)
{
SetPlayerSkin(playerid, 118);
GivePlayerWeapon(playerid, 30, 5000);
SetPlayerColor(playerid, 0x0000FFFF);
SetPlayerArmour(playerid, 50);
SendClientMessageToAll(0x0000FFFF,"Willkommen im Dienst!");
SetTimer("fbiinjob",30000,1);
}und das ist das pcikup wenn man ausm dienst geht
if(pickupid == pickupfbc)
{
SetPlayerSkin(playerid, 60);
SetPlayerColor(playerid, 0xFFFFFFFF);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
ResetPlayerWeapons(playerid);
SendClientMessageToAll(0x0000FFFF, "Komm bald wieder!");
KillTimer("fbiinjob");
}das ist ganz unten
public fbiinjob(playerid)
{
GivePlayerMoney(playerid, 500);
return 1;
}das ist ganz oben:
forward fbiinjob(playerid);
also was ist falsch ?
-
ich hab alles gemacht pickup ist da aber wenn ich in das pickup reingehe sammelt er das ein und es passiert nichts warum ?
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Lan");
AddStaticPickup(1318,2, 1952.8125,1342.9418,15.3672);
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == 0){
SetPlayerPos(playerid, -2637.69,1404.24,906.46,359.4688);
SetPlayerInterior(playerid, 3);
GameTextForPlayer(playerid, "~y~Willkommen in der Adminbar", 5000, 5);
}
return 1;
} -
sry tut mir leid
-
Wo liegt der Fehler ?
if (strcmp("/Hi", cmdtext, true, 10) == 0)
{
if IsPlayerAdmin(playerid) == true);
SendClientMessageToAll(0xAA3333AA, "Hi der Admin ist da!");
}
else
{
SendClientMessageToAll(0xAA3333AA, "Du bist kein Admin!");
return 1;
}CodeC:\Dokumente und Einstellungen\Fischer\Desktop\hi.pwn(103) : warning 213: tag mismatch C:\Dokumente und Einstellungen\Fischer\Desktop\hi.pwn(103) : error 001: expected token: "*then", but found ")" C:\Dokumente und Einstellungen\Fischer\Desktop\hi.pwn(103) : error 029: invalid expression, assumed zero C:\Dokumente und Einstellungen\Fischer\Desktop\hi.pwn(103) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
Die Errors beziehen sich auf "IsPlayerAdmin"
wie gehen die Errors wegg bitte um hilfe!
-