error ohne ände

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
  • ja hallo ich habe heute 0.3e gemacht
    und wolte complimieren
    und es kommen



    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19033) : error 017: undefined symbol "M_OnPlayerCommandText"
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19043) : error 017: undefined symbol "strtok"
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19043) : error 033: array must be indexed (variable "cmd")
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19757) : error 017: undefined symbol "strtok"
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19757) : error 033: array must be indexed (variable "tmp")
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19791) : error 017: undefined symbol "strtok"
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19791) : error 033: array must be indexed (variable "tmp")
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20123) : error 017: undefined symbol "strtok"
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20123) : error 033: array must be indexed (variable "tmp")
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20431) : error 017: undefined symbol "strtok"
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20431) : error 033: array must be indexed (variable "x_nr")
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20441) : error 017: undefined symbol "strtok"
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20441) : error 033: array must be indexed (variable "tmp")
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20471) : error 017: undefined symbol "strtok"
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20471) : error 033: array must be indexed (variable "tmp")
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20515) : error 017: undefined symbol "strtok"
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20515) : error 033: array must be indexed (variable "x_nr")
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(20525) : error 017: undefined symbol "strtok"

  • lustig oder?


    Postest errors aber ohne Zeilen.


    Na was bedeutet das nur?

  • da muss ich dir das ganze script posten
    was kann ich dagegn tuhen

  • if(strcmp(cmd, "/dance", true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp) || strlen(tmp) > 2)
    {
    SendClientMessage(playerid,COLOR_GRAD1,"Benutzung: /dance [1-4]");
    return 1;
    }




    if(strcmp(cmd, "/explode", true) == 0)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] >= 1339)
    {
    SendClientMessage(playerid, COLOR_GREY, "/explode [Playerid]");
    return 1;
    }
    giveplayerid = strval(tmp);
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])
    {
    SendClientMessage(playerid, COLOR_GRAD1, "FEHLER!");
    return 1;
    } ........

  • Das muss ins Script:
    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;
    }

  • jetzt kommt das
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19043) : error 033: array must be indexed (variable "cmd")
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19045) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19046) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19054) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19055) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19057) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19058) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19059) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19060) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19061) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19062) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19063) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19085) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19087) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19106) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19118) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19120) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19132) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19170) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19176) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19194) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19195) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19201) : error 079: inconsistent return types (array & non-array)
    C:\Users\Argjend\Desktop\Server\gamemodes\WoM.pwn(19205) : error 079: inconsistent return types (array & non-array)