Scripthilfe [Simpler Server] Fehler?

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hey liebes Forum,


    ich habe jetzt was umgestellt und herraus gefunden das ich sowas : rausbekomme.



    Uhm ja.. Ich kann damit nichts anfangen :O


    Mein Script :
    #include <a_samp>#include <ocmd>#include <Sscanf>
    //Farben#define BLAU 0x0019FFFF#define ROT 0xCD0000FF#define GRÜN 0x007400FF#define GELB 0xF5FF00FF#define GRAU 0x5A5A5AFF
    #if defined FILTERSCRIPT
    #include DIALOG_TELE 1public OnFilterScriptInit(){ print("\n--------------------------------------"); print(" Hydra Mode by Jack2HD"); print("--------------------------------------\n"); return 1;}
    public OnFilterScriptExit(){ return 1;}
    #else
    main(){ print("\n----------------------------------"); print(" Hydra Mode by Jack2HD"); print("----------------------------------\n");}
    #endif
    ocmd:spawnp(playerid,params[]){ new Float:Pos[3], pID, string[64], string2[64]; if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"spawnp: [playerid]"); GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]); SetPlayerPos(pID,Pos[0],Pos[1],Pos[2]); format(string,sizeof(string),"Sie haben den Spieler %s zu sich geportet.",SpielerName(pID)); format(string2,sizeof(string2),"Sie wurden von %s geportet",SpielerName(playerid)); SendClientMessage(playerid,ROT,string); SendClientMessage(pID,ROT,string2); return 1;}
    ocmd:goto(playerid,params[]){ new Float:Pos[3], pID, string[64]; if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"goto: [playerid]"); GetPlayerPos(pID,Pos[0],Pos[1],Pos[2]); SetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]); format(string,sizeof(string),"Du hast dich zu %s Teleportiert.",pID); return 1;}
    ocmd:givewaffe(playerid,params[]){ new pID, wID, muni; if(sscanf(params,"uii",pID,wID,muni))return SendClientMessage(playerid,GRAU,"givewaffen: [playerid] [waffenid] [munition] "); GivePlayerWeapon(pID,wID,muni); return 1;}
    ocmd:givemoney(playerid,params[]){ if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,ROT,"geht net"); new pID, money; if(sscanf(params, "ui",pID,money)) return SendClientMessage(playerid,ROT,"givemoney: [id] [money]"); if(money>10000)return SendClientMessage(playerid,ROT,"Du kanst max. 10.000$ geben."); GivePlayerMoney(pID,money); return 1;}
    ocmd:veh(playerid,params[]){ { new ModelID,Float:VehPos[4]; if(sscanf(params,"d",ModelID)) return SendClientMessage(playerid,ROT, "Benutze: /veh [ModellID] [Farbe 1] [Farbe 2]"); if(ModelID < 400 || ModelID > 611) return SendClientMessage(playerid,0xB0AFB0FF, "Die Anzahl muss zwischen 400 - 611 liegen."); GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]); GetPlayerFacingAngle(playerid, VehPos[3]); CreateVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],1,1,-1); } return 1;}
    public OnGameModeInit(){ SetGameModeText("Hydra Mode"); AddStaticVehicle(411,1385.0293,-2330.9976,13.2717,0.6901,1,1); // infernus 10 AddStaticVehicle(411,1388.3658,-2331.0313,13.2689,359.9201,1,1); // infernus 9 AddStaticVehicle(411,1391.5923,-2331.1187,13.2717,359.0511,1,1); // infernus 8
    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 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 OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext,"/ft",true)==0) { SetPlayerPos(playerid,-1319.0222,499.5677,18.2344); SendClientMessage(playerid,0xFFFF00FF,"Du wurdest zum Flugzeugträger Teleportiert"); return 1; } if(strcmp(cmdtext,"/lvpd",true)==0) { SetPlayerPos(playerid,2292.8635,2457.2065,10.8203); SendClientMessage(playerid,0xFFFF00FF,"Du wurdest zum LVPD Teleportiert"); return 2; } if(strcmp(cmdtext,"/area1",true)==0) { SetPlayerPos(playerid,213.5485,1871.9747,13.1406); SendClientMessage(playerid,0xFFFF0FF,"Du wurdest zur Area1 Teleportiert"); return 3;
    } if(strcmp(cmdtext,"/area2",true)==0) { SetPlayerPos(playerid,288.5894,1936.2107,17.6406); SendClientMessage(playerid,0xFFFF0FF,"Du wurdest zur Area2 Teleportiert"); return 4; } if(strcmp(cmdtext,"/lspd",true)==0) { SetPlayerPos(playerid,1566.7761,-1695.4712,5.8906); SendClientMessage(playerid,0xFFFF00FF,"Du wurdest zum LSPD Teleportiert"); return 5; } if(strcmp(cmdtext,"/sfpd",true)==0) { SetPlayerPos(playerid,-1620.7695,687.9418,7.1901); SendClientMessage(playerid,0xFFFF00FF,"Du wurdest zum SFPD Teleportiert"); return 6;
    } if(strcmp(cmdtext,"/ft2",true)==0) { SetPlayerPos(playerid,-1395.6067,498.5266,18.2344); SendClientMessage(playerid,0xFFFF00FF,"Du wurdest zum FT2 Teleportiert"); return 7; } if(strcmp(cmdtext,"/ff",true)==0) { SetPlayerPos(playerid,405.3089,2475.2991,16.5062); SendClientMessage(playerid,0xFFFF0FF,"Du wurdest zum FF Teleportiert");
    } if(strcmp(cmdtext,"/est",true)==0) { SetPlayerPos(playerid,48.2416,-1530.5531,5.3222); SendClientMessage(playerid,0xFFFF0FF,"Du wurdest zum EST Teleportiert"); } if(strcmp(cmdtext,"/lsair",true)==0) { SetPlayerPos(playerid,1976.7375,-2231.4646,13.5469); SendClientMessage(playerid,0xFFFF0FF,"Du wurdest zum LS Airport Teleportiert"); } if(strcmp(cmdtext,"/swat",true)==0) { SetPlayerPos(playerid,-83.3248,-1133.8409,1.0781); SendClientMessage(playerid,0xFFFF0FF,"Du wurdest zur SWAT Base Teleportiert"); } if(strcmp(cmdtext,"/noobspawn",true)==0) { SetPlayerPos(playerid,1791.0967,-1936.5441,13.5469); SendClientMessage(playerid,0xF5FF00FF,"Du wurdest zum Noob Spawn Teleportiert");
    } if(strcmp(cmdtext,"/lsfd",true)==0) { SetPlayerPos(playerid,785.2075,-1332.9512,13.5417); SendClientMessage(playerid,0xFFFF00FF,"Du wurdest zum LSFD Teleportiert"); } if(strcmp(cmdtext,"/oamt",true)==0) { SetPlayerPos(playerid,912.4355,-1234.9093,17.2109); SendClientMessage(playerid,0xFFFF00FF,"Du wurdest zum O-Amt Teleportiert"); } if(strcmp(cmdtext,"/müll",true)==0) { SetPlayerPos(playerid,2061.9312,-1972.6361,13.5469); SendClientMessage(playerid,0xFFFF00FF,"Du wurdest zur Mülldeponie Teleportiert"); } return 0;}
    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 OnPlayerRequestSpawn(playerid){ return 1;}
    public OnObjectMoved(objectid){ return 1;}
    public OnPlayerObjectMoved(playerid, objectid){ return 1;}
    public OnPlayerPickUpPickup(playerid, pickupid){ return 1;}
    public OnVehicleMod(playerid, vehicleid, componentid){ return 1;}
    public OnVehiclePaintjob(playerid, vehicleid, paintjobid){ return 1;}
    public OnVehicleRespray(playerid, vehicleid, color1, color2){ return 1;}
    public OnPlayerSelectedMenuRow(playerid, row){ return 1;}
    public OnPlayerExitedMenu(playerid){ return 1;}
    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid){ return 1;}
    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ return 1;}
    public OnRconLoginAttempt(ip[], password[], success){ return 1;}
    public OnPlayerUpdate(playerid){ return 1;}
    public OnPlayerStreamIn(playerid, forplayerid){ return 1;}
    public OnPlayerStreamOut(playerid, forplayerid){ return 1;}
    public OnVehicleStreamIn(vehicleid, forplayerid){ return 1;}
    public OnVehicleStreamOut(vehicleid, forplayerid){ return 1;}
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ return 1;}
    public OnPlayerClickPlayer(playerid, clickedplayerid, source){ return 1;}
    stock SpielerName(playerid){ new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); return name;}


    Ich hoffe ihr könnt mir helfen :)


    Liebe Grüße Jack

  • Mach mal bei OnGameModeInit ein


    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);


    sonst geht es nicht habe ich auch weiteres kannst du ja bei onplayerspawn machen deswegen ist addplayerclass egal wo sie pos sind :D