Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

[Ajuda] [Erro-Ajuda] Payday Textdraw

$
0
0
Bom pessoal eu não entendo muito sobre pawno e estou aprendendo aos poucos com videos de youtuber, apostilas de alguns sites entre outos. Eu estou tentando colocar esse códgio que achei aqui no forum em minha GM porém está dando 4 erros muitos chatos que não consegui resolver ainda. Quem puder me ajudar ficarei grato. Obrigado desde já!

HTML Code:

\BPS.pwn(113374) : error 017: undefined symbol "minutoss"
\BPS.pwn(113374) : warning 215: expression has no effect
\BPS.pwn(113374) : error 001: expected token: ";", but found "]"
\BPS.pwn(113374) : error 029: invalid expression, assumed zero
\BPS.pwn(113374) : fatal error 107: too many error messages on one line[/COLOR]

O código que estou usando é este:

HTML Code:

forward RelogioUPs(playerid);
public RelogioUPs(playerid)
{
    minutoss[playerid] ++;
    TempoPayday[playerid]--;
    new string[50];
    if(minutos[playerid] >= 59);
    {
        minutoss[playerid] = 0;
          countando ++;
          TempoPayday[playerid] = 59;
    }
    switch(countando)
    {
        case 1: format(string, 50,"Payday: 59:%d", TempoPayday[playerid]);
        case 2: format(string, 50,"Payday: 58:%d", TempoPayday[playerid]);
          case 3: format(string, 50,"Payday: 57:%d", TempoPayday[playerid]);
          case 4: format(string, 50,"Payday: 56:%d", TempoPayday[playerid]);
        case 5: format(string, 50,"Payday: 55:%d", TempoPayday[playerid]);
          case 6: format(string, 50,"Payday: 54:%d", TempoPayday[playerid]);
          case 7: format(string, 50,"Payday: 53:%d", TempoPayday[playerid]);
        case 8: format(string, 50,"Payday: 52:%d", TempoPayday[playerid]);
        case 9: format(string, 50,"Payday: 51:%d", TempoPayday[playerid]);
        case 10: format(string, 50,"Payday: 50:%d", TempoPayday[playerid]);
        case 11: format(string, 50,"Payday: 49:%d", TempoPayday[playerid]);
        case 12: format(string, 50,"Payday: 48:%d", TempoPayday[playerid]);
        case 13: format(string, 50,"Payday: 47:%d", TempoPayday[playerid]);
        case 14: format(string, 50,"Payday: 46:%d", TempoPayday[playerid]);
        case 15: format(string, 50,"Payday: 45:%d", TempoPayday[playerid]);
        case 16: format(string, 50,"Payday: 44:%d", TempoPayday[playerid]);
        case 17: format(string, 50,"Payday: 43:%d", TempoPayday[playerid]);
        case 18: format(string, 50,"Payday: 42:%d", TempoPayday[playerid]);
        case 19: format(string, 50,"Payday: 41:%d", TempoPayday[playerid]);
        case 20: format(string, 50,"Payday: 40:%d", TempoPayday[playerid]);
          case 21: format(string, 50,"Payday: 39:%d", TempoPayday[playerid]);
        case 22: format(string, 50,"Payday: 38:%d", TempoPayday[playerid]);
        case 23: format(string, 50,"Payday: 37:%d", TempoPayday[playerid]);
        case 24: format(string, 50,"Payday: 36:%d", TempoPayday[playerid]);
        case 25: format(string, 50,"Payday: 35:%d", TempoPayday[playerid]);
        case 26: format(string, 50,"Payday: 34:%d", TempoPayday[playerid]);
        case 27: format(string, 50,"Payday: 33:%d", TempoPayday[playerid]);
        case 28: format(string, 50,"Payday: 32:%d", TempoPayday[playerid]);
        case 29: format(string, 50,"Payday: 31:%d", TempoPayday[playerid]);
        case 30: format(string, 50,"Payday: 30:%d", TempoPayday[playerid]);
        case 31: format(string, 50,"Payday: 29:%d", TempoPayday[playerid]);
        case 32: format(string, 50,"Payday: 28:%d", TempoPayday[playerid]);
        case 33: format(string, 50,"Payday: 27:%d", TempoPayday[playerid]);
        case 34: format(string, 50,"Payday: 26:%d", TempoPayday[playerid]);
        case 35: format(string, 50,"Payday: 25:%d", TempoPayday[playerid]);
          case 36: format(string, 50,"Payday: 24:%d", TempoPayday[playerid]);
        case 37: format(string, 50,"Payday: 23:%d", TempoPayday[playerid]);
        case 38: format(string, 50,"Payday: 22:%d", TempoPayday[playerid]);
        case 39: format(string, 50,"Payday: 21:%d", TempoPayday[playerid]);
        case 40: format(string, 50,"Payday: 20:%d", TempoPayday[playerid]);
        case 41: format(string, 50,"Payday: 19:%d", TempoPayday[playerid]);
        case 42: format(string, 50,"Payday: 18:%d", TempoPayday[playerid]);
        case 43: format(string, 50,"Payday: 17:%d", TempoPayday[playerid]);
        case 44: format(string, 50,"Payday: 16:%d", TempoPayday[playerid]);
        case 45: format(string, 50,"Payday: 15:%d", TempoPayday[playerid]);
        case 46: format(string, 50,"Payday: 14:%d", TempoPayday[playerid]);
        case 47: format(string, 50,"Payday: 13:%d", TempoPayday[playerid]);
        case 48: format(string, 50,"Payday: 12:%d", TempoPayday[playerid]);
        case 49: format(string, 50,"Payday: 11:%d", TempoPayday[playerid]);
        case 50: format(string, 50,"Payday: 10:%d", TempoPayday[playerid]);
        case 51: format(string, 50,"Payday: 9:%d", TempoPayday[playerid]);
          case 52: format(string, 50,"Payday: 8:%d", TempoPayday[playerid]);
        case 53: format(string, 50,"Payday: 7:%d", TempoPayday[playerid]);
        case 54: format(string, 50,"Payday: 6:%d", TempoPayday[playerid]);
        case 55: format(string, 50,"Payday: 5:%d", TempoPayday[playerid]);
          case 56: format(string, 50,"Payday: 4:%d", TempoPayday[playerid]);
        case 57: format(string, 50,"Payday: 3:%d", TempoPayday[playerid]);
        case 58: format(string, 50,"Payday: 2:%d", TempoPayday[playerid]);
        case 59: format(string, 50,"Payday: 1:%d", TempoPayday[playerid]);
      }
    TextDrawSetString(ReloginhoUP,string);
    TextDrawShowForAll(ReloginhoUP);
    if(countando == 59)
    {
          countando = 1;
        @PayDay(playerID);
    }
    return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles