Need help :D

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
  • Also ich brauche hilfe...



    TextDrawAlignment(ModeName,1);
    TextDrawBackgroundColor(ModeName,255);
    TextDrawFont(ModeName,3);
    TextDrawLetterSize(ModeName,0.379998, 1.600030);
    TextDrawColor(ModeName,-1);
    TextDrawSetOutline(ModeName, 1);
    TextDrawSetProportional(ModeName,1);
    new Vstr[30]; format(Vstr, sizeof Vstr, "Test1");
    new Vstr[30]; format(Vstr, sizeof Vstr, "Test2");
    TextDrawSetString(ModeName, Vstr);


    Wie mache ich das, dass sich die Zwei alle 60Sec abwechseln? (Test1, Test2)
    Die sollten beide auf der gleichen stelle stehn nur der Text sich alle 60Sec verändert.

  • forward name1(variable);


    OnGameModeInit()
    {
    SetTimerEx("name1",60000,0,"d",0);
    return 1;
    }



    public name1(variable)
    {
    if(variable == 0)
    {
    TextdrawSetString(ModeMame,"Test 2");
    SetTimerEx("name1",60000,0,"d",1);
    }
    else
    {
    TextdrawSetString(ModeMame,"Test 1");
    SetTimerEx("name1",60000,0,"d",0);
    }
    return 1;
    }

    2 Mal editiert, zuletzt von Simon ()

  • Bekomme 5 Erros why? :D
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11986) : error 029: invalid expression, assumed zero
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11986) : error 017: undefined symbol "name"
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11988) : error 017: undefined symbol "variable"
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11990) : error 017: undefined symbol "TextdrawSetString"
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11995) : error 017: undefined symbol "TextdrawSetString"
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(12003) : warning 225: unreachable code
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(17475) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(29391) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(37981) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(40729) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(40753) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(40762) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(43072) : warning 219: local variable "name" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.

  • C:\Users\Marco\Desktop\GT-Reallife 1535\pawno\include\utils.inc(52) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(3453) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(3482) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(3543) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(3694) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(3779) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(3788) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(5831) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(6553) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(8539) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(9756) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11233) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11987) : error 029: invalid expression, assumed zero
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11987) : error 017: undefined symbol "name"
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11989) : error 017: undefined symbol "variable"
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11991) : error 017: undefined symbol "TextdrawSetString"
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11996) : error 017: undefined symbol "TextdrawSetString"
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(12005) : warning 225: unreachable code
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(17477) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(29393) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(37983) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(40731) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(40755) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(40764) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(43074) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(47235) : warning 203: symbol is never used: "name32"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


  • Also ich habe das:
    public name(variable)
    {
    if(variable == 0)
    {
    TextdrawSetString(ModeMame,"Test 2");
    SetTimerEx("name",60000,0,"d",1);
    }
    else
    {
    TextdrawSetString(ModeMame,"Test 1");
    SetTimerEx("name",60000,0,"d",0);
    }
    return 1; 
    Ganz unten im Script getan und SetTimer... da oben rüber was mache ich falsch? :D

  • public name(variable) Schau mal dort steht variable also muss er es im forward auch erstellen
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(3482) : warning 219: local variable "name" shadows a variable at a preceding level
    Schau mal die variable name wird schon verwendet daswegen name32

  • forward name1(variable);


    OnGameModeInit()
    {
    SetTimerEx("name1",60000,0,"d",0);
    return 1;
    }



    public name1(variable)
    {
    if(variable == 0)
    {
    TextdrawSetString(ModeMame,"Test 2");
    SetTimerEx("name1",60000,0,"d",1);
    }
    else
    {
    TextdrawSetString(ModeMame,"Test 1");
    SetTimerEx("name1",60000,0,"d",0);
    }
    return 1;
    }

  • C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(11908) : warning 225: unreachable code
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(47223) : error 017: undefined symbol "TextdrawSetString"
    C:\Users\Marco\Desktop\GT-Reallife 1535\gamemodes\GT_Reallife.pwn(47228) : error 017: undefined symbol "TextdrawSetString"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    Nur noch 2Erros und ein Warning pls help :)