Problem mit Script

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, ich habe mich mal an die Tutorials gehalten die ich gefunden habe. Das letze was ich eingefügt habe war das mit dem Registrieren. Vor dem Registrieren waren es 0 Errors. Nun nach dem Registrierugnsscript, sind es 20 8| Wäre toll könntet ihr mir helfen. Das script stelle ich mal hier rein





    #include <a_samp>
    #include <dini>


    #define Blau 0x0095FFFF


    #define Dialog_Spawn 1


    #define Dialog_Register 2


    #define Dialog_Login 3


    new bsnenter;
    new bsnexit;


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" The German Reallife");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" ");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {


    Create3DTextLabel("Burger Shot Nord",Blau,1199.2100,-918.1479,43.1235,30,0);
    bsnexit=CreatePickup(1559,1,362.8692,-75.1664,1001.5078);
    bsnenter=CreatePickup(1559,1,1199.2100,-918.1479,43.1235);
    SetGameModeText("The German Reallife");
    DisableInteriorEnterExits();
    AddPlayerClass(0,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0); //Spawn Koordinaten, Waffen, Ammo und Skin
    AddPlayerClass(1,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(2,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(7,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);//Diese Skins crashen 3, 4, 5, 6, 7, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289
    AddPlayerClass(9,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(10,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(12,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(13,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(14,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(15,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(16,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(17,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(20,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(21,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(22,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(23,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(24,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(25,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);

    AddStaticVehicle(462,411.7417,-1783.5525,5.1479,270.9439,1,2); // Neulings Roller 1
    AddStaticVehicle(462,405.0800,-1783.3212,5.1467,271.0242,1,2); // Neulings Roller 2
    AddStaticVehicle(462,398.4781,-1783.4398,5.1466,271.0243,1,2); // Neulings Roller 3
    AddStaticVehicle(462,390.8744,-1783.5897,5.1501,271.1353,1,2); // Neulings Roller 4




    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid,395.8983,-1800.3076,7.8281); //Player Position
    SetPlayerFacingAngle (playerid,359.9866); //Spieler schaut nach...
    SetPlayerCameraPos(playerid,395.8941,-1795.6869,7.8281); //Kamera Position beim re-Spawn
    SetPlayerCameraLookAt(playerid,395.8983,-1800.3076,7.8281); //Kamera Sicht
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Registrieren","Gebe hier bitte dein gewünschtes Passwort ein:","Registrieren","Abbrechen");
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    ShowPlayerDialog(playerid,Dialog_Spawn,DIALOG_STYLE_MSGBOX,"Registration","Herzlich willkommen auf unserem Reallife Server. Hier wird jeder Spieler respektiert, und man muss sich an die Regeln halten.\nSollte dies nicht geschehen, kann man mit einem Kick bzw ban rechnen.","Ok","Schließen");
    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[])
    {
    new cmd[128], idx;
    // /kill 1

    cmd = strtok(cmdtext, idx);

    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }

    if (strcmp(cmdtext, "/bsn", true)==0)
    {
    SetPlayerPos(playerid,1190.5657,-928.2200,43.9688); // Bsn Port); // Bsn Port
    SendClientMessage(playerid, 0xE2FFFFFF, "Du wurdest teleportiert.");
    return 1;
    }
    if (strcmp("/kill", cmd, true) == 0) // Diese Funktion tötet den Spieler
    {
    new tmp[128];

    tmp = strtok(cmdtext, idx);

    if (strlen(tmp) == 0)
    {
    SendClientMessage(playerid, 0xBFC0C2FF, "/kill [playerid]");
    }
    else
    {
    if (IsPlayerConnected(strval(tmp)))
    {
    SetPlayerHealth(strval(tmp), 0);
    }
    else
    SendClientMessage(playerid, 0xBFC0C2FF, "Dieser Spieler ist nicht online!");
    }

    return 1;
    }


    SendClientMessage(playerid, 0xBFC0C2FF, "Diesen Befehl gibt es nicht");
    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 OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid==bsnenter)
    {
    GameTextForPlayer(playerid,"~w~Willkommen im ~n~~w~Burger Shot",3000,3);
    SetPlayerPos(playerid,365.0144,-74.6279,1001.5078);
    SetPlayerInterior(playerid,10);
    }
    if(pickupid==bsnexit)
    {
    SetPlayerPos(playerid,1199.5637,-920.4474,43.1087);
    SetPlayerFacingAngle(playerid,186.7116);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    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[])
    {
    if (dialogid==Dialog_Register)
    {
    if (response==0)
    {
    SendClientMessage(playerid,"Du hast die Registration abgebrochen.");
    Kick(playerid);
    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid, Blau,"Das Passwort war zu kurz.");
    ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Registrieren","Gebe hier bitte dein gewünschtes Passwort ein:","Registrieren","Abbrechen");
    return 1;
    }
    else

    Register(playerid,inputtext);
    return 1;

    }
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }
    stock Register(playerid,key[])
    {
    return 1;
    }


    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;
    }Bitte um Hilfe. Wenn möglich bitte korrigieren was falsch ist. Die Errors noch:



    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(135) : error 017: undefined symbol "strtok"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(135) : error 033: array must be indexed (variable "cmd")
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(153) : error 017: undefined symbol "strtok"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(153) : error 033: array must be indexed (variable "tmp")
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(132) : warning 203: symbol is never used: "idx"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(321) : error 035: argument type mismatch (argument 2)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(322) : warning 217: loose indentation
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(323) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(331) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(335) : error 017: undefined symbol "Register"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(336) : warning 217: loose indentation
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(336) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(339) : warning 217: loose indentation
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(339) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(342) : warning 217: loose indentation
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(342) : error 029: invalid expression, assumed zero
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(342) : error 004: function "OnPlayerClickPlayer" is not implemented
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(344) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(346) : warning 225: unreachable code
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(346) : error 029: invalid expression, assumed zero
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(346) : error 017: undefined symbol "Register"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(348) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : warning 225: unreachable code
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : error 017: undefined symbol "strtok"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : error 029: invalid expression, assumed zero
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : error 017: undefined symbol "string"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : fatal error 107: too many error messages on one line


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



    20 Errors.

  • Kopier doch nicht das ganze Script hierrein, da blickt doch keiner durch.


    Edit:


    Benutzt doch sscanf?

    Du suchst eine nette Community, ein hilfsbereites Team & einen Server, wo es Spaß macht, drauf zu spielen?
    Dann bist du bei Sunrise - Reallife genau richtig!

  • Schreib das mal in eine "pwn" Confi einfach makieren und auf den "pwn" Button
    Dan ist es übersichtlich dan können wir dir auch helfen OoOo

  • So:


    #include <a_samp>#include <dini>


    #define Blau 0x0095FFFF


    #define Dialog_Spawn 1


    #define Dialog_Register 2


    #define Dialog_Login 3


    new bsnenter;
    new bsnexit;


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" The German Reallife");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" ");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {


    Create3DTextLabel("Burger Shot Nord",Blau,1199.2100,-918.1479,43.1235,30,0);
    bsnexit=CreatePickup(1559,1,362.8692,-75.1664,1001.5078);
    bsnenter=CreatePickup(1559,1,1199.2100,-918.1479,43.1235);
    SetGameModeText("The German Reallife");
    DisableInteriorEnterExits();
    AddPlayerClass(0,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0); //Spawn Koordinaten, Waffen, Ammo und Skin
    AddPlayerClass(1,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(2,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(7,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);//Diese Skins crashen 3, 4, 5, 6, 7, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289
    AddPlayerClass(9,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(10,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(12,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(13,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(14,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(15,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(16,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(17,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(20,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(21,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(22,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(23,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(24,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);
    AddPlayerClass(25,395.8983,-1800.3076,7.8281,359.9866,0,0,0,0,0,0);


    AddStaticVehicle(462,411.7417,-1783.5525,5.1479,270.9439,1,2); // Neulings Roller 1
    AddStaticVehicle(462,405.0800,-1783.3212,5.1467,271.0242,1,2); // Neulings Roller 2
    AddStaticVehicle(462,398.4781,-1783.4398,5.1466,271.0243,1,2); // Neulings Roller 3
    AddStaticVehicle(462,390.8744,-1783.5897,5.1501,271.1353,1,2); // Neulings Roller 4




    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid,395.8983,-1800.3076,7.8281); //Player Position
    SetPlayerFacingAngle (playerid,359.9866); //Spieler schaut nach...
    SetPlayerCameraPos(playerid,395.8941,-1795.6869,7.8281); //Kamera Position beim re-Spawn
    SetPlayerCameraLookAt(playerid,395.8983,-1800.3076,7.8281); //Kamera Sicht
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Registrieren","Gebe hier bitte dein gewünschtes Passwort ein:","Registrieren","Abbrechen");
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    ShowPlayerDialog(playerid,Dialog_Spawn,DIALOG_STYLE_MSGBOX,"Registration","Herzlich willkommen auf unserem Reallife Server. Hier wird jeder Spieler respektiert, und man muss sich an die Regeln halten.\nSollte dies nicht geschehen, kann man mit einem Kick bzw ban rechnen.","Ok","Schließen");
    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[])
    {
    new cmd[128], idx;
    // /kill 1


    cmd = strtok(cmdtext, idx);


    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    // Do something here
    return 1;
    }


    if (strcmp(cmdtext, "/bsn", true)==0)
    {
    SetPlayerPos(playerid,1190.5657,-928.2200,43.9688); // Bsn Port); // Bsn Port
    SendClientMessage(playerid, 0xE2FFFFFF, "Du wurdest teleportiert.");
    return 1;
    }
    if (strcmp("/kill", cmd, true) == 0) // Diese Funktion tötet den Spieler
    {
    new tmp[128];


    tmp = strtok(cmdtext, idx);


    if (strlen(tmp) == 0)
    {
    SendClientMessage(playerid, 0xBFC0C2FF, "/kill [playerid]");
    }
    else
    {
    if (IsPlayerConnected(strval(tmp)))
    {
    SetPlayerHealth(strval(tmp), 0);
    }
    else
    SendClientMessage(playerid, 0xBFC0C2FF, "Dieser Spieler ist nicht online!");
    }


    return 1;
    }



    SendClientMessage(playerid, 0xBFC0C2FF, "Diesen Befehl gibt es nicht");
    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 OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid==bsnenter)
    {
    GameTextForPlayer(playerid,"~w~Willkommen im ~n~~w~Burger Shot",3000,3);
    SetPlayerPos(playerid,365.0144,-74.6279,1001.5078);
    SetPlayerInterior(playerid,10);
    }
    if(pickupid==bsnexit)
    {
    SetPlayerPos(playerid,1199.5637,-920.4474,43.1087);
    SetPlayerFacingAngle(playerid,186.7116);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    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[])
    {
    if (dialogid==Dialog_Register)
    {
    if (response==0)
    {
    SendClientMessage(playerid,"Du hast die Registration abgebrochen.");
    Kick(playerid);
    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid, Blau,"Das Passwort war zu kurz.");
    ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Registrieren","Gebe hier bitte dein gewünschtes Passwort ein:","Registrieren","Abbrechen");
    return 1;
    }
    else


    Register(playerid,inputtext);
    return 1;


    }
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }
    stock Register(playerid,key[])
    {
    return 1;
    }


    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;
    }Bitte um Hilfe. Wenn möglich bitte korrigieren was falsch ist. Die Errors noch:



    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(135) : error 017: undefined symbol "strtok"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(135) : error 033: array must be indexed (variable "cmd")
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(153) : error 017: undefined symbol "strtok"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(153) : error 033: array must be indexed (variable "tmp")
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(132) : warning 203: symbol is never used: "idx"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(321) : error 035: argument type mismatch (argument 2)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(322) : warning 217: loose indentation
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(323) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(331) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(335) : error 017: undefined symbol "Register"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(336) : warning 217: loose indentation
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(336) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(339) : warning 217: loose indentation
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(339) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(342) : warning 217: loose indentation
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(342) : error 029: invalid expression, assumed zero
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(342) : error 004: function "OnPlayerClickPlayer" is not implemented
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(344) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(346) : warning 225: unreachable code
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(346) : error 029: invalid expression, assumed zero
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(346) : error 017: undefined symbol "Register"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(348) : error 079: inconsistent return types (array & non-array)
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : warning 225: unreachable code
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : error 017: undefined symbol "strtok"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : error 029: invalid expression, assumed zero
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : error 017: undefined symbol "string"
    C:\Users\HP\Desktop\The German REallife\gamemodes\donald.pwn(351) : fatal error 107: too many error messages on one line


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



    20 Errors.

    Du suchst ein Scripter der für "maximal" 5€ für dich Scriptet?


    Dann bist du bei mir genau richtig.