Beiträge von Smoot

    Ich bekomme beim compilen diese errors angezeigt, jedoch weiß ich nicht wie ich sie wegkriege.


    C:\Users\ante valentic\Desktop\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding level
    C:\Users\ante valentic\Desktop\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding level
    C:\Users\ante valentic\Desktop\Server\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding level
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(17372) : error 021: symbol already defined: "strtok"
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(17387) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(18404) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(18553) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(18673) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(18748) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(18806) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(18874) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(18947) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(18960) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19119) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19181) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19250) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19328) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19338) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19359) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19394) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19402) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19513) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(19573) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(20252) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(20362) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(20381) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(20440) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(20521) : error 047: array sizes do not match, or destination array is too small
    C:\Users\ante valentic\Desktop\Server\gamemodes\hd.pwn(20587) : error 047: array sizes do not match, or destination array is too small


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.


    Meine Vermutung ist, dass die Errors wegen diesen Zeilen entstehen, weil das paar mal im Script auftaucht...


    strtok(const string[], &index)
    {
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
    index++;
    }


    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
    result[index - offset] = string[index];
    index++;
    }
    result[index - offset] = EOS;
    return result;
    }



    z.B hier...


    cmd = strtok(cmdtext, idx);


    oder hier...


    if(IsPlayerInRangeOfPoint(playerid, 2.0,-372.4010,-1428.9385,25.7266))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /gangjail [Playerid/Name]");
    return 1;
    }


    Kann mir jemand helfen, ich verzweifle... ?(;(

    //edit


    Also ich habe ein wenig selbst rumprobiert und es hat geklappt, jedoch kommt das jetzt...


    Ich bekomme einen Run Time Error 19, wenn ich den Server starte. Ich habe schon alles probiert aber nichts hat geholfen.


    Hier ist die Sever.log:



    Jetzt habe ich nur noch das Problem...



    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team


    [13:34:40]
    [13:34:40] Server Plugins
    [13:34:40] --------------
    [13:34:40] Loading plugin: mysql
    [13:34:40]


    > MySQL plugin R6-2 successfully loaded.


    [13:34:40] Loaded.
    [13:34:40] Loading plugin: sscanf
    [13:34:40]


    [13:34:40] ===============================


    [13:34:40] sscanf plugin loaded.


    [13:34:40] (c) 2009 Alex "Y_Less" Cole


    [13:34:40] 0.3d-R2 500 Players "dnee"


    [13:34:40] ===============================


    [13:34:40] Loaded.
    [13:34:40] Loading plugin: streamer
    [13:34:40] Failed.
    [13:34:40] Loading plugin: crashdetect
    [13:34:40] crashdetect v4.8.5 is OK.
    [13:34:40] Loaded.
    [13:34:40] Loaded 3 plugins.


    [13:34:40]
    [13:34:40] Ban list
    [13:34:40] --------
    [13:34:40] Loaded: samp.ban
    [13:34:40]
    [13:34:40]
    [13:34:40] Filterscripts
    [13:34:40] ---------------
    [13:34:40] Loading filterscript 'MVD-System.amx'...
    [13:34:40] [junkbuster] Loading JunkBuster...
    [13:34:40]
    [13:34:40] [junkbuster] Speichere/Lade MVD-System Konfiguration:
    [13:34:40] [junkbuster] - WeaponHack = 0
    [13:34:40] [junkbuster] - MoneyHack = 0
    [13:34:40] [junkbuster] - Jetpack = 1
    [13:34:40] [junkbuster] - HealthHack = 1
    [13:34:40] [junkbuster] - ArmourHack = 1
    [13:34:40] [junkbuster] - DriveBy = 0
    [13:34:40] [junkbuster] - Spam = 0
    [13:34:40] [junkbuster] - CommandSpam = 0
    [13:34:40] [junkbuster] - BadWords = 0
    [13:34:40] [junkbuster] - CarJackHack = 0
    [13:34:40] [junkbuster] - TeleportHack = 1
    [13:34:40] [junkbuster] - MaxPing = 1000
    [13:34:40] [junkbuster] - SpectateHack = 0
    [13:34:40] [junkbuster] - Blacklist = 0
    [13:34:40] [junkbuster] - IpBans = 0
    [13:34:40] [junkbuster] - TempBans = 0
    [13:34:40] [junkbuster] - SpawnKill = 0
    [13:34:40] [junkbuster] - CapsLock = 0
    [13:34:40] [junkbuster] - 3DSpeed = 0
    [13:34:40] [junkbuster] - MaxSpeed = 550
    [13:34:40] [junkbuster] - AdminImmunity = 1
    [13:34:40] [junkbuster] - Advertisement = 0
    [13:34:40] [junkbuster] - FreezeUpdate = 0
    [13:34:40] [junkbuster] - SpawnTime = 10
    [13:34:40] [junkbuster] - CheckpointTeleport = 1
    [13:34:40] [junkbuster] - Airbrake = 100
    [13:34:40] [junkbuster] - TankMode = 1
    [13:34:40] [junkbuster] - WarnPlayers = 0
    [13:34:40] [junkbuster] - SingleplayerCheats = 1
    [13:34:40] [junkbuster] - MinFPS = 0
    [13:34:40] [junkbuster] - DisableBadWeapons = 1
    [13:34:40] [junkbuster] - CBug = 0
    [13:34:40] [junkbuster] - AntiBugKill = 1
    [13:34:40] [junkbuster] - NoReload = 0
    [13:34:40] [junkbuster] - NoReloadForSawnOff = 0
    [13:34:40] [junkbuster] - ActiveGMC = 2
    [13:34:40] [junkbuster] - GMCBan = 0
    [13:34:40] [junkbuster] - ServerSideHealth = 1
    [13:34:40] [junkbuster] - CheckVMPos = 0
    [13:34:40] [junkbuster] - QuickTurn = 1
    [13:34:40] [junkbuster] - VehicleTeleport = 1
    [13:34:40] [junkbuster] - Wallride = 170
    [13:34:40] [junkbuster] - DisplayTextDraw = 1
    [13:34:40] [junkbuster] - AFK = 0
    [13:34:40] [junkbuster] - PickupTeleport = 1
    [13:34:40] [junkbuster] - FlyHack = 40
    [13:34:40] [junkbuster] - JunkBusterChrome = 1
    [13:34:40] [junkbuster] - CheckWalkAnims = 0
    [13:34:40] [junkbuster] - ReportMoneyHack = 0
    [13:34:40] [junkbuster] - SpeedhackAdvanced = 20
    [13:34:40] [junkbuster] - Joypad = 2
    [13:34:40] [junkbuster] - ArmedVehicles = 0
    [13:34:40] [junkbuster] - VehicleRepair = 2
    [13:34:40] [junkbuster] - TuningHack = 0
    [13:34:40] [junkbuster] - PayForGuns = 0
    [13:34:40] [junkbuster] - SpawnVehicles = 2
    [13:34:40] [junkbuster] - MaxTotalWarnings = 0
    [13:34:40] [junkbuster] - TooManyWarningsAction = 0
    [13:34:40] [junkbuster] - AirbrakeDetection = 1
    [13:34:40] [junkbuster] - SpeedhackDetection = 1
    [13:34:40]
    [13:34:40] [junkbuster] 0 IP-bans have been loaded.
    [13:34:40] [junkbuster] 0 temporary bans have been loaded.
    [13:34:40] [junkbuster] 0 whitelist entries have been loaded.
    [13:34:40] [junkbuster] 5 blacklist entries have been loaded.
    [13:34:40] [junkbuster] 41 bad words have been loaded.
    [13:34:40] [junkbuster] 4 forbidden weapons have been loaded.
    [13:34:40] [junkbuster] MVD-System wurde Konfiguriert.
    [13:34:40] [junkbuster] JunkBuster (v11) has successfully been loaded.
    [13:34:40] Loaded 1 filterscripts.


    [13:34:41] [debug] Run time error 19: "File or function is not found"
    [13:34:41] [debug] Streamer_CallbackHook
    [13:34:41] [debug] CreateDynamicObject
    [13:34:41] [debug] DestroyDynamicObject
    [13:34:41] [debug] MoveDynamicObject
    [13:34:41] [debug] CreateDynamic3DTextLabel
    [13:34:41] [debug] CreateDynamicPickup
    [13:34:41] [debug] TogglePlayerAllDynamicCPs
    [13:34:41] [debug] CreateDynamicCP
    [13:34:41] [debug] TogglePlayerDynamicCP
    [13:34:41] [debug] DestroyDynamic3DTextLabel
    [13:34:41] Script[gamemodes/Haupt-Script.amx]: Run time error 19: "File or function is not found"
    [13:34:41] Number of vehicle models: 0



    Das Streamer Plugin wir irgendwie nicht geladen.

    Wenn ich den Server starte, dann erscheint bei mir ein Run Time Error 19. Das Plugin Crashdetect zeigt mir an, dass es am Streamer liegt, nur was genau heißt das?



    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3e-R2, (C)2005-2012 SA-MP Team


    [15:19:08]
    [15:19:08] Server Plugins
    [15:19:08] --------------
    [15:19:08] Loading plugin: mysql
    [15:19:08]


    > MySQL plugin R6-2 successfully loaded.


    [15:19:08] Loaded.
    [15:19:08] Loading plugin: sscanf
    [15:19:08]


    [15:19:08] ===============================


    [15:19:08] sscanf plugin loaded.


    [15:19:08] (c) 2009 Alex "Y_Less" Cole


    [15:19:08] 0.3d-R2 500 Players "dnee"


    [15:19:08] ===============================


    [15:19:08] Loaded.
    [15:19:08] Loading plugin: streamer
    [15:19:08]


    *** Streamer Plugin v2.5.2 by Incognito loaded ***


    [15:19:08] Loaded.
    [15:19:08] Loading plugin: crashdetect
    [15:19:08] crashdetect v4.8.5 is OK.
    [15:19:08] Loaded.
    [15:19:08] Loaded 4 plugins.


    [15:19:08]
    [15:19:08] Ban list
    [15:19:08] --------
    [15:19:08] Loaded: samp.ban
    [15:19:08]
    [15:19:08]
    [15:19:08] Filterscripts
    [15:19:08] ---------------
    [15:19:08] Loading filterscript 'MVD-System.amx'...
    [15:19:08] [junkbuster] Loading JunkBuster...
    [15:19:08]
    [15:19:08] [junkbuster] Speichere/Lade MVD-System Konfiguration:
    [15:19:08] [junkbuster] - WeaponHack = 0
    [15:19:08] [junkbuster] - MoneyHack = 0
    [15:19:08] [junkbuster] - Jetpack = 1
    [15:19:08] [junkbuster] - HealthHack = 1
    [15:19:08] [junkbuster] - ArmourHack = 1
    [15:19:08] [junkbuster] - DriveBy = 0
    [15:19:08] [junkbuster] - Spam = 0
    [15:19:08] [junkbuster] - CommandSpam = 0
    [15:19:08] [junkbuster] - BadWords = 0
    [15:19:08] [junkbuster] - CarJackHack = 0
    [15:19:08] [junkbuster] - TeleportHack = 1
    [15:19:08] [junkbuster] - MaxPing = 1000
    [15:19:08] [junkbuster] - SpectateHack = 0
    [15:19:08] [junkbuster] - Blacklist = 0
    [15:19:08] [junkbuster] - IpBans = 0
    [15:19:08] [junkbuster] - TempBans = 0
    [15:19:08] [junkbuster] - SpawnKill = 0
    [15:19:08] [junkbuster] - CapsLock = 0
    [15:19:08] [junkbuster] - 3DSpeed = 0
    [15:19:08] [junkbuster] - MaxSpeed = 550
    [15:19:08] [junkbuster] - AdminImmunity = 1
    [15:19:08] [junkbuster] - Advertisement = 0
    [15:19:08] [junkbuster] - FreezeUpdate = 0
    [15:19:08] [junkbuster] - SpawnTime = 10
    [15:19:08] [junkbuster] - CheckpointTeleport = 1
    [15:19:08] [junkbuster] - Airbrake = 100
    [15:19:08] [junkbuster] - TankMode = 1
    [15:19:08] [junkbuster] - WarnPlayers = 0
    [15:19:08] [junkbuster] - SingleplayerCheats = 1
    [15:19:08] [junkbuster] - MinFPS = 0
    [15:19:08] [junkbuster] - DisableBadWeapons = 1
    [15:19:08] [junkbuster] - CBug = 0
    [15:19:08] [junkbuster] - AntiBugKill = 1
    [15:19:08] [junkbuster] - NoReload = 0
    [15:19:08] [junkbuster] - NoReloadForSawnOff = 0
    [15:19:08] [junkbuster] - ActiveGMC = 2
    [15:19:08] [junkbuster] - GMCBan = 0
    [15:19:08] [junkbuster] - ServerSideHealth = 1
    [15:19:08] [junkbuster] - CheckVMPos = 0
    [15:19:08] [junkbuster] - QuickTurn = 1
    [15:19:08] [junkbuster] - VehicleTeleport = 1
    [15:19:08] [junkbuster] - Wallride = 170
    [15:19:08] [junkbuster] - DisplayTextDraw = 1
    [15:19:08] [junkbuster] - AFK = 0
    [15:19:08] [junkbuster] - PickupTeleport = 1
    [15:19:08] [junkbuster] - FlyHack = 40
    [15:19:08] [junkbuster] - JunkBusterChrome = 1
    [15:19:08] [junkbuster] - CheckWalkAnims = 0
    [15:19:08] [junkbuster] - ReportMoneyHack = 0
    [15:19:08] [junkbuster] - SpeedhackAdvanced = 20
    [15:19:08] [junkbuster] - Joypad = 2
    [15:19:08] [junkbuster] - ArmedVehicles = 0
    [15:19:08] [junkbuster] - VehicleRepair = 2
    [15:19:08] [junkbuster] - TuningHack = 0
    [15:19:08] [junkbuster] - PayForGuns = 0
    [15:19:08] [junkbuster] - SpawnVehicles = 2
    [15:19:08] [junkbuster] - MaxTotalWarnings = 0
    [15:19:08] [junkbuster] - TooManyWarningsAction = 0
    [15:19:08] [junkbuster] - AirbrakeDetection = 1
    [15:19:08] [junkbuster] - SpeedhackDetection = 1
    [15:19:08]
    [15:19:08] [junkbuster] 0 IP-bans have been loaded.
    [15:19:08] [junkbuster] 0 temporary bans have been loaded.
    [15:19:08] [junkbuster] 0 whitelist entries have been loaded.
    [15:19:08] [junkbuster] 5 blacklist entries have been loaded.
    [15:19:08] [junkbuster] 41 bad words have been loaded.
    [15:19:08] [junkbuster] 4 forbidden weapons have been loaded.
    [15:19:08] [junkbuster] MVD-System wurde Konfiguriert.
    [15:19:08] [junkbuster] JunkBuster (v11) has successfully been loaded.
    [15:19:08] Loaded 1 filterscripts.


    [15:19:08] [debug] Run time error 19: "File or function is not found"
    [15:19:08] [debug] Streamer_CallbackHook
    [15:19:08] [debug] PlayerTextDrawSetPreviewModel
    [15:19:08] [debug] PlayerTextDrawSetPreviewRot
    [15:19:08] Script[gamemodes/Haupt-Script.amx]: Run time error 19: "File or function is not found"
    [15:19:08] Number of vehicle models: 0

    So das hier einmal :D



    new FraktionsSpawn[MAX_FRAKTIONNEN-1][FSpawnInfo] =
    {
    //Float:fspawnx,Float:fspawny,Float:fspawnz,fspawnint,fspawnworld
    {197.3488,170.8382,1003.0234,3,0},//SAPD
    {224.6808,117.7463,999.0901,10,0},//FBI
    {1721.7062,-1123.7224,24.0859,0,0},//SARETTUNGSDIENST
    {323.7583,1129.9723,1083.8828,5,0},//LSV
    {1339.6172,49.7216,1001.0156,0,0},//GSF
    {215.0495,1817.1235,6.4216,0,0},//ARMY
    {2450.9426,-1686.9153,1013.5078,2,0},//SJB
    {307.7416,307.4384,1003.3047,4,0},//TERROR MAIN SPAWN
    {-2170.4016,646.1524,1057.5938,1,0},//YAKIS
    {848.1361,-1053.3429,25.9559,0,1},//SANEWSAG
    {901.5898,-1238.5682,16.2576,0,0},//OAMT
    {233.8992,1190.7234,1084.4155,3,0},//LCN
    {490.0859,-77.7379,998.7578,11,0},//SoA
    {-2029.5884,-104.4722,1035.1719,3,0},//SAFS
    {-961.3073,1936.2583,9.0000,17,0},//SAELEKTRONIKGmBh
    {1232.2738,-813.5173,1084.0078,5,0},//Regierung
    {145.2818,1386.6741,1088.3672,5,0},//Cali Kartell
    {-223.8304,1397.2104,28.3672,18,18}//Die Sekte
    };


    ...und das hier

    new FVehicleInfo[MAX_FRAKTIONNEN][FVehicleDATAInfo] =
    {
    {79,1,"PD"},
    {0,0,"XX"}, // FBI
    {175,1,"FD"},
    {194,194,"LV"},
    {234,234,"GS"},
    {200,200,"AR"},
    {242,242,"SB"},
    {-1,-1,"TR"},
    {1,1,"YA"},
    {6,0,"NC"},
    {2,2,"TA"},
    {149,149,"LC"},
    {0,0,"SoA"},
    {214,214,"D"},
    {10,10,"ES"},
    {1,1,"G"},
    {162,162,"S"},
    {13,13,"DS"}
    };

    C:\Users\ante valentic\Desktop\Pure Roleplay relased von Samet\gamemodes\GeTmyselfmade.pwn(3466) : error 052: multi-dimensional arrays must be fully initializedC:\Users\ante valentic\Desktop\Pure Roleplay relased von Samet\gamemodes\GeTmyselfmade.pwn(3488) : error 052: multi-dimensional arrays must be fully initializedPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase2 Errors.