Keine Idee, wie ich diese Errors wegbekomme

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
  • 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... ?(;(