Beiträge von iTz_Flo

    if(pickupid==SkinKauf) { ShowPlayerDialog(playerid,DIALOG_SKINKAUF,DIALOG_STYLE_MSGBOX,"Auswahl","Herzlich Willkommen im Binco!\n Was möchten sie haben?","Sonnenbrille","Skin"); }

    Hi Leute


    Ich wollte heute ein Kleidungsladen machen aber bei dem Pickup wo ich den Dialog reinmachen will kommen nur Errors



    C:\Users\iTz_Flo\Desktop\Samp Server\gamemodes\dwei.pwn(1938) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\Samp Server\gamemodes\dwei.pwn(1938) : warning 215: expression has no effect
    C:\Users\iTz_Flo\Desktop\Samp Server\gamemodes\dwei.pwn(1938) : warning 215: expression has no effect
    C:\Users\iTz_Flo\Desktop\Samp Server\gamemodes\dwei.pwn(1938) : warning 215: expression has no effect
    C:\Users\iTz_Flo\Desktop\Samp Server\gamemodes\dwei.pwn(1938) : warning 215: expression has no effect
    C:\Users\iTz_Flo\Desktop\Samp Server\gamemodes\dwei.pwn(1938) : warning 215: expression has no effect
    C:\Users\iTz_Flo\Desktop\Samp Server\gamemodes\dwei.pwn(1938) : error 001: expected token: ";", but found ")"
    C:\Users\iTz_Flo\Desktop\Samp Server\gamemodes\dwei.pwn(1938) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\Samp Server\gamemodes\dwei.pwn(1938) : fatal error 107: too many error messages on one line


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



    4 Errors.



    ShowPlayerDialog(playerid,DIALOG_SKINKAUF,DIALOG_STYLE_MSGBOX,"Auswahl","Herzlich Willkommen im Binco!\n Was möchten sie haben?","Sonnenbrille","Skin");

    Danke es hat mir geholfen aber jetzt kommen neue errors:



    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(202) : warning 209: function "OnPlayerConnect" should return a value
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(208) : error 017: undefined symbol "SpielerSpeichern"
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(449) : error 020: invalid symbol name ""
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(449) : warning 215: expression has no effect
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(449) : warning 215: expression has no effect
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(449) : warning 215: expression has no effect
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(449) : error 001: expected token: ";", but found ")"
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(449) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(449) : fatal error 107: too many error messages on one line


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



    5 Errors.





    public OnPlayerConnect(playerid)


    { new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    if(dini_Exists(Spielerdatei))
    {
    ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Login","Dein Account wurde gefunden. Gib bitte das Passwort ein.","Login","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Registrieren","Gib bitte das gewünschte Passwort ein.","Register","Abbrechen");
    return 1;
    }
    }




    public OnPlayerDisconnect(playerid, reason)
    {
    if(GetPVarInt(playerid,"loggedin")==1)
    {
    SpielerSpeichern(playerid);
    }
    return 1;
    }




    stock Login(playerid, Key[])
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof,(Spielerdatei),"/Accounts/%s.txt",name);
    if(!strcmp(key,dini_Get(Spielerdatei,"Passwort"),false);
    {
    LoadAccount(playerid);
    SendClientMessage(playerid,Blau,"Erfolgreich eingeloggt.");
    return 1;
    }
    else
    {
    SendClientMessage(playerid,Rot,"Falsches Passwort.");
    ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Loginvorgang","Dein Account wurde in unserer Datenbank gefunden! Bitte Meld dich nun mit deinem Passwort ein.","Login","Abbruch");
    return 1;
    }


    Vielleicht kann mir ja jemand helfen :)

    Hi Leute :D


    ich wollte heute ein Register, Login System machen aber irgendwie kommen immer fehler und ich weiss mir nicht mehr zu helfen :D


    Die Errors:


    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(202) : warning 217: loose indentation
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(202) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(202) : error 004: function "OnPlayerDisconnect" is not implemented
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(206) : error 017: undefined symbol "SpielerSpeichern"
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(208) : error 079: inconsistent return types (array & non-array)
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(211) : warning 225: unreachable code
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(211) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(211) : error 004: function "OnPlayerSpawn" is not implemented
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(213) : error 079: inconsistent return types (array & non-array)
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(216) : warning 225: unreachable code
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(216) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(216) : error 004: function "OnPlayerDeath" is not implemented
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(218) : error 079: inconsistent return types (array & non-array)
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(221) : warning 225: unreachable code
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(221) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(221) : error 004: function "OnVehicleSpawn" is not implemented
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(223) : error 079: inconsistent return types (array & non-array)
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(226) : warning 225: unreachable code
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(226) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(226) : error 004: function "OnVehicleDeath" is not implemented
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(228) : error 079: inconsistent return types (array & non-array)
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(231) : warning 225: unreachable code
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(231) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(231) : error 004: function "OnPlayerText" is not implemented
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(233) : error 079: inconsistent return types (array & non-array)
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(236) : warning 225: unreachable code
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(236) : error 029: invalid expression, assumed zero
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(236) : error 004: function "OnPlayerCommandText" is not implemented
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(238) : error 017: undefined symbol "cmdtext"
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(242) : error 079: inconsistent return types (array & non-array)
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(244) : error 017: undefined symbol "cmdtext"
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(247) : error 079: inconsistent return types (array & non-array)
    C:\Users\iTz_Flo\Desktop\GTA-SA\Samp Server\gamemodes\GR.pwn(249) : error 017: undefined symbol "cmdtext"


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



    26 Errors.




    Hier die Zeilen wo die Errors drin sein sollen:



    public OnPlayerConnect(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    if(dini_Exists(Spielerdatei))
    {
    ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Login","Dein Account wurde gefunden. Gib bitte das Passwort ein.","Login","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Registrieren","Gib bitte das gewünschte Passwort ein.","Register","Abbrechen");
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    if(GetPVarInt(playerid,"loggedin")==1)
    {
    SpielerSpeichern(playerid);
    }
    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[])
    {
    return 1;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)