Falsch o.O - .-

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
  • C:\Users\Banjo\Desktop\[GrL]German Real Life\gamemodes\Test.pwn(133) : error 017: undefined symbol "cmd"
    C:\Users\Banjo\Desktop\[GrL]German Real Life\gamemodes\Test.pwn(133) : warning 215: expression has no effect
    C:\Users\Banjo\Desktop\[GrL]German Real Life\gamemodes\Test.pwn(133) : error 001: expected token: ";", but found ")"
    C:\Users\Banjo\Desktop\[GrL]German Real Life\gamemodes\Test.pwn(133) : error 029: invalid expression, assumed zero
    C:\Users\Banjo\Desktop\[GrL]German Real Life\gamemodes\Test.pwn(133) : 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.


    Wo is da error help pls ?


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp(cmdtext, "/login", true 10) ==0 )
    {
    if(IsPlayerConnected(playerid))
    {
    new tmppass[64];
    if(gPlayerLogged[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /login [password]");
    return 1;
    }
    strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
    Encrypt(tmppass);
    OnPlayerLogin(playerid,tmppass);
    }
    return 1;
    }
    if (strcmp(cmd, "/register", true) ==0 )
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
    return 1;
    }
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "%s.ini", sendername);
    new File: hFile = fopen(string, io_read);
    if (hFile)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "That Username is already taken, please choose a different one.");
    fclose(hFile);
    return 1;
    }
    new tmppass[64];
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /register [password]");
    return 1;
    }
    strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
    Encrypt(tmppass);
    OnPlayerRegister(playerid,tmppass);
    }
    return 1;
    }

    Unser Teamspeak :87.230.4.220:3000
    Unser Forum
    http://grl-forum-life.coolbb.net/
    // Server Leiter : [GrL]Sveiki
    Server1 [GrS] Reallife by [GrL]Team /Server2 Name :[GrS] Reallife 2 by [GrL]Team
    Unsere Server IP :
    84.114.211.7:7412 // Unsere Zweite ServerIP :
    84.114.211.7:7777

  • DU SPAMST SOLANGSAM DAS FORUM VOLL !!!!

    Machst du ja nicht ne? :rolleyes: bzw apolecu deins würde nicht gehn da eer ja parameter mit "cmd" benutzt ;)
    BTT: /Register Stimmt ich hab zumindest keine Errors
    new cmd[256];
    if (strcmp(cmd, "/login", true) ==0 )
    {
    if(IsPlayerConnected(playerid))
    {
    new tmppass[64];
    if(gPlayerLogged[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /login [password]");
    return 1;
    }
    strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
    Encrypt(tmppass);
    OnPlayerLogin(playerid,tmppass);
    }
    return 1;
    }