Brauche Hilfe beim Script

  • C:\Users\Acer\Desktop\Server\pawno\include\dutils.inc(368) : warning 219: local variable "str1" shadows a variable at a preceding level
    C:\Users\Acer\Desktop\Server\pawno\include\dutils.inc(368) : warning 219: local variable "str2" shadows a variable at a preceding level
    C:\Users\Acer\Desktop\Server\pawno\include\dutils.inc(427) : warning 219: local variable "str2" shadows a variable at a preceding level
    C:\Users\Acer\Desktop\sunsetcity.pwn(17206) : error 021: symbol already defined: "strtok"
    C:\Users\Acer\Desktop\sunsetcity.pwn(17221) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(24607) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(29360) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(29455) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(31304) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(31382) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(31632) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(32153) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(38497) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(38691) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(38749) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(38788) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(39000) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(39226) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(39318) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(39356) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Acer\Desktop\sunsetcity.pwn(45373) : warning 203: symbol is never used: "ret_memcpy"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    17 Errors.



    Buggt es bei mir oder wie soll es es verstehen

  • C:\Users\Acer\Desktop\Server\pawno\include\dutils.inc(368) : warning 219: local variable "str1" shadows a variable at a preceding level


    C:\Users\Acer\Desktop\Server\pawno\include\dutils.inc(368) : warning 219: local variable "str2" shadows a variable at a preceding level


    C:\Users\Acer\Desktop\Server\pawno\include\dutils.inc(427) : warning
    219: local variable "str2" shadows a variable at a preceding level


    C:\Users\Acer\Desktop\sunsetcity.pwn(17206) : error 021: symbol already defined: "strtok"


    C:\Users\Acer\Desktop\sunsetcity.pwn(17221) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(24607) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(29360) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(29455) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(31304) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(31382) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(31632) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(32153) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(38497) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(38691) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(38749) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(38788) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(39000) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(39226) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(39318) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(39356) : error 047: array sizes do not match, or destination array is too small


    C:\Users\Acer\Desktop\sunsetcity.pwn(45373) : warning 203: symbol is never used: "ret_memcpy"


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


  • Neinnnnnn


    Die Zeilen 38697 ......

  • z.B. Hier wo ist der fehler da ist doch keiner
    strtok(const string[], &index)
    {
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
    index++;
    }


    ich habe es mir ja gedownloadet im samp forum bei den anderen gehts ja ohne probleme 0o

  • strtok(const string[], &index)


    {


    new length = strlen(string);


    while ((index < length) && (string[index] <= ' '))


    {


    index++;


    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • ja, kein Wunder, das strtok sollte so aussehen:


    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;
    }


    mfg. :thumbup:

    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S