Bekomme 6 Errors

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
  • Hey


    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13652) : error 001: expected token: "-identifier-", but found "["
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13656) : error 029: invalid expression, assumed zero
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13656) : warning 215: expression has no effect
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : error 029: invalid expression, assumed zero
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : warning 215: expression has no effect
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : warning 215: expression has no effect
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : error 001: expected token: ";", but found ")"
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : error 029: invalid expression, assumed zero
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : fatal error 107: too many error messages on one line
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    6 Errors.


    Zeile 13660
    if(strcmp(cmd, "/tdsprite",true) == 0);


    Zeile 13652
    new cmd[180];

    Mit freundlichen Grüßen
    Siepac

  • new giveplayer[MAX_PLAYER_NAME];
    new plname[MAX_PLAYER_NAME];
    new cmd[180];
    new tmp[180];
    new str[180];
    new giveplayerid, moneys, idx;
    cmd = strtok(cmdtext, idx);
    GetPlayerName(playerid,sendername,sizeof(sendername));
    GetPlayerName(playerid,plname,sizeof(plname));
    PlayerUpdate(playerid);
    if(strcmp(cmd, "/tdsprite",true) == 0);
    {
    new Text:txtSprite1;
    txtSprite1 = TextDrawCreate(200.0, 220.0, "samaps:map"); // Text is txdfile:texture
    TextDrawFont(txtSprite1, 4); // Font ID 4 is the sprite draw font
    TextDrawColor(txtSprite1,0xFFFFFFFF);

    Mit freundlichen Grüßen
    Siepac

  • 'hust'


    new giveplayer[MAX_PLAYER_NAME];
    new plname[MAX_PLAYER_NAME];
    new cmd[180];
    new tmp[180];
    new str[180];
    new giveplayerid, moneys, idx;
    cmd = strtok(cmdtext, idx);
    GetPlayerName(playerid,sendername,sizeof(sendername));
    GetPlayerName(playerid,plname,sizeof(plname));
    PlayerUpdate(playerid);
    if(strcmp(cmd, "/tdsprite",true) == 0);// <=== Fällt was auf?
    {
    new Text:txtSprite1;
    txtSprite1 = TextDrawCreate(200.0, 220.0, "samaps:map"); // Text is txdfile:texture
    TextDrawFont(txtSprite1, 4); // Font ID 4 is the sprite draw font
    TextDrawColor(txtSprite1,0xFFFFFFFF);
    Nimm ma das Semicolon weg ^^ ===> ";"


    Gruss: Sonic

    I didn't hit you. I high fived your face.

  • C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13652) : error 001: expected token: "-identifier-", but found "["
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13656) : error 029: invalid expression, assumed zero
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13656) : warning 215: expression has no effect
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : error 029: invalid expression, assumed zero
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : warning 215: expression has no effect
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : warning 215: expression has no effect
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : error 001: expected token: ";", but found ")"
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : error 029: invalid expression, assumed zero
    C:\Users\user\Desktop\Lifeplay\[PGU]Reallife\gamemodes\reallife.pwn(13660) : fatal error 107: too many error messages on one line
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    6 Errors.



    Dan habe ich immernoch 6

    Mit freundlichen Grüßen
    Siepac

  • public OnPlayerCommandText(playerid, cmdtext[])
    {
    new string[220];
    new playermoney;
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
    new plname[MAX_PLAYER_NAME];
    new cmd[180]; //<======
    new tmp[180];
    new str[180];
    new giveplayerid, moneys, idx;
    cmd = strtok(cmdtext, idx); //<======
    GetPlayerName(playerid,sendername,sizeof(sendername));
    GetPlayerName(playerid,plname,sizeof(plname));
    PlayerUpdate(playerid);
    if(strcmp(cmd, "/tdsprite",true) == 0) //<=====
    {
    new Text:txtSprite1;
    txtSprite1 = TextDrawCreate(200.0, 220.0, "samaps:map"); // Text is txdfile:texture
    TextDrawFont(txtSprite1, 4); // Font ID 4 is the sprite draw font
    TextDrawColor(txtSprite1,0xFFFFFFFF);
    TextDrawTextSize(txtSprite1,200.0,200.0); // Text size is the Width:Height
    TextDrawShowForPlayer(playerid,txtSprite1);
    return 1;
    }

    Mit freundlichen Grüßen
    Siepac