Frage zu GameText

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
  • guckst du >hier <

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • Gametextforplayer

    Das schon aber er möchte ja einen Countdown ;)

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • Ich denke mal das weiß er wohl er will doch wissen wie :P


    Ja habs überlesen.
    Mach eine Variable.
    bsp. new cd[playerid] = 5;
    dann einen Timer setzen im Befehl
    SetTimerEx("Countdown", 5000, false, "i", playerid);


    im Timer:
    forward Countdown(playerid);
    public Countdown(playerid)
    {
    cd[playerid] --;
    new string[128];
    if(cd[playerid] = 0)
    {
    Killtimer(Countdown(playerid));
    }
    else
    {
    format(string, sizeof(string), "Countdown: %i",Countdown(playerid) );
    GameTextForPlayer(string, 1000, 1);
    }
    }

  • ?

    C:\Dokumente und Einstellungen\Maurice\Desktop\Life Of Sun\Life Of Sun By ROnNNNY [VERÖFFENTLICHT]\gamemodes\LoS.pwn(36) : error 017: undefined symbol "playerid"
    C:\Dokumente und Einstellungen\Maurice\Desktop\Life Of Sun\Life Of Sun By ROnNNNY [VERÖFFENTLICHT]\gamemodes\LoS.pwn(46339) : error 035: argument type mismatch (argument 1)
    C:\Dokumente und Einstellungen\Maurice\Desktop\Life Of Sun\Life Of Sun By ROnNNNY [VERÖFFENTLICHT]\gamemodes\LoS.pwn(46341) : warning 209: function "Countdown" should return a value


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



    2 Errors.


    Zeilen:
    36
    new cd[playerid] = 5;

    forward Countdown(playerid);
    Function Countdown(playerid)
    {
    cd[playerid] --;
    new string[128];
    if(cd[playerid] = 0)
    {
    KillTimer(Countdown(playerid));
    }
    else
    {
    format(string, sizeof(string), "Countdown: %i",Countdown(playerid) );
    GameTextForPlayer(string, 1000, 1); // C:\Dokumente und Einstellungen\Maurice\Desktop\Life Of Sun\Life Of Sun By ROnNNNY [VERÖFFENTLICHT]\gamemodes\LoS.pwn(46339) : error 035: argument type mismatch (argument 1)
    }
    }//C:\Dokumente und Einstellungen\Maurice\Desktop\Life Of Sun\Life Of Sun By ROnNNNY [VERÖFFENTLICHT]\gamemodes\LoS.pwn(46341) : warning 209: function "Countdown" should return a value

  • new cd[5];
    GameTextForPlayer(1000, 1, string)
    Kann müll sein weiß ich nicht :D

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • [s]Jetzt nur noch 1 error:
    C:\Dokumente und Einstellungen\Maurice\Desktop\Life Of Sun\Life Of Sun By ROnNNNY [VERÖFFENTLICHT]\gamemodes\LoS.pwn(46339) : error 035: argument type mismatch (argument 1)


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



    1 Error.




    Zeile:
    GameTextForPlayer(string, 1000, 1);

    [/s]


    Richtig: GameTextForPlayer(playerid,string,1000,1);

  • GameTextForPlayer(1000, 1, string) <-- Bullshit


    Normal muss das so gemacht werden
    GameTextForPlayer(playerid, string, 5000, 2);

    "Imagine if the government went after corruption as hard as it goes after guys who run filesharing sites. Priorities. " - @Snowden
    "More worrying than FBI temporarily running a server that contained child porn, is hacking computers anywhere in the world with one warrant" - @josephfcox

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen