[Ajuda] String nгo envia..
#1

pawn Код:
case 6:
        {
            new Prize[2];
            Position++;
            switch(Position)
            {
                case 1: Prize[0] = (random(random(5000)) + 10000), Prize[1] = 10;
                case 2: Prize[0] = (random(random(4500)) + 9000), Prize[1] = 9;
                case 3: Prize[0] = (random(random(4000)) + 8000), Prize[1] = 8;
                case 4: Prize[0] = (random(random(3500)) + 7000), Prize[1] = 7;
                case 5: Prize[0] = (random(random(3000)) + 6000), Prize[1] = 6;
                case 6: Prize[0] = (random(random(2500)) + 5000), Prize[1] = 5;
                case 7: Prize[0] = (random(random(2000)) + 4000), Prize[1] = 4;
                case 8: Prize[0] = (random(random(1500)) + 3000), Prize[1] = 3;
                case 9: Prize[0] = (random(random(1000)) + 2000), Prize[1] = 2;
                default: Prize[0] = random(random(1000)), Prize[1] = 1;
            }
            new StyleDriftSTR[366];
            static place;
            place++;
            DisablePlayerRaceCheckpoint(playerid);
            StatusEventoRacer[1][playerid] = 0;
            format(StyleDriftSTR, sizeof(StyleDriftSTR), "{00FF00}[EVENTO]: {FFFFFF}%s terminou o evento StyleDrift! {00FF00}[{FFFFFF}Posiзгo: %d%s{00FF00}] [{FFFFFF}Tempo: CriarTimer{00FF00}] \"Prкmio: $%d e +%d Score\".", Nome(playerid), place, (place == 1) ? ("st") : (place == 2) ? ("nd") : (place == 3) ? ("rd") : ("th"), Prize[0], Prize[1]);
            MsgAll(comando, StyleDriftSTR);
            GivePlayerMoney(playerid, Prize[0]);
            SetPlayerScore(playerid, GetPlayerScore(playerid) + Prize[1]);
        }
Cуdigo й este ae!
Reply
#2

qual q й o problema
esplica ae maluco
Reply
#3

Quote:
Originally Posted by Chefгo
Посмотреть сообщение
qual q й o problema
esplica ae maluco
A msg nгo й enviada amigo, apenas isto!
Reply
#4

pawn Код:
format(StyleDriftSTR, sizeof(StyleDriftSTR), "{00FF00}[EVENTO]: {FFFFFF}%s terminou o evento StyleDrift! {00FF00}[{FFFFFF}Posiзгo: %d%s{00FF00}] [{FFFFFF}Tempo: CriarTimer{00FF00}] Prкmio: $%d e +%d Score.", Nome(playerid), place, (place == 1) ? ("st") : (place == 2) ? ("nd") : (place == 3) ? ("rd") : ("th"), Prize[0], Prize[1]);            MsgAll(comando, StyleDriftSTR);

/* para desativar algo e assim *\
Reply
#5

Quote:
Originally Posted by PT
Посмотреть сообщение
pawn Код:
format(StyleDriftSTR, sizeof(StyleDriftSTR), "{00FF00}[EVENTO]: {FFFFFF}%s terminou o evento StyleDrift! {00FF00}[{FFFFFF}Posiзгo: %d%s{00FF00}] [{FFFFFF}Tempo: CriarTimer{00FF00}] Prкmio: $%d e +%d Score.", Nome(playerid), place, (place == 1) ? ("st") : (place == 2) ? ("nd") : (place == 3) ? ("rd") : ("th"), Prize[0], Prize[1]);            MsgAll(comando, StyleDriftSTR);

/* para desativar algo e assim *\
?

A msg nгo envia, nгo estou pedindo como colocar o texto em comentбrios...

@EDIT:

Agora vi a modificaзгo que vocк fez..
Malz.. Vou testar, jaja edit
Reply
#6

Vc tem no topo

pawn Код:
#define MsgAll SendClientMessageToAll

??
Reply
#7

Quote:
Originally Posted by PT
Посмотреть сообщение
Vc tem no topo

pawn Код:
#define MsgAll SendClientMessageToAll
Sim..
Reply
#8

entao coloca em todas as linhas

pawn Код:
print("chegou ate aqui 1");
para ver depois de onde e que msg n vai
Vб mudando o numero em cada linha
Reply
#9

Quote:
Originally Posted by PT
Посмотреть сообщение
entao coloca em todas as linhas

pawn Код:
print("chegou ate aqui 1");
para ver depois de onde e que msg n vai
Vб mudando o numero em cada linha
PHP код:
            DisablePlayerRaceCheckpoint(playerid), print("chegou ate aqui 19860");
            
StatusEventoRacer[1][playerid] = 0, print("chegou ate aqui 19861");
            
//format(StyleDriftSTR, sizeof(StyleDriftSTR), "{00FF00}[EVENTO]: {FFFFFF}%s terminou o evento StyleDrift! {00FF00}[{FFFFFF}Posiзгo: %d%s{00FF00}] [{FFFFFF}Tempo: CriarTimer{00FF00}] \"Prкmio: $%d e +%d Score\".", Nome(playerid), place, (place == 1) ? ("st") : (place == 2) ? ("nd") : (place == 3) ? ("rd") : ("th"), Prize[0], Prize[1]);
            
format(StyleDriftSTRsizeof(StyleDriftSTR), "{00FF00}[EVENTO]: {FFFFFF}%s terminou o evento StyleDrift! {00FF00}[{FFFFFF}Posiзгo: %d%s{00FF00}] [{FFFFFF}Tempo: CriarTimer{00FF00}] Prкmio: $%d e +%d Score."Nome(playerid), place, (place == 1) ? ("st") : (place == 2) ? ("nd") : (place == 3) ? ("rd") : ("th"), Prize[0], Prize[1]), print("chegou ate aqui 19863");
            
MsgAll(comandoStyleDriftSTR), print("chegou ate aqui 19864");
            
GivePlayerMoney(playeridPrize[0]), print("chegou ate aqui 19865");
            
SetPlayerScore(playeridGetPlayerScore(playerid) + Prize[1]), print("chegou ate aqui 19866"); 
Vou testar!

@EDIT:

Todas estгo funcionando!

@EDIT2:

Todo o cуdigo em OnPlayerEnterRaceCheckpoint

pawn Код:
switch(StatusEventoRacer[1][playerid])
    {
        case 1:
        {
            StatusEventoRacer[1][playerid] = 2;
            PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
            SetPlayerRaceCheckpoint(playerid, 0, DriftRacer[1][0], DriftRacer[1][1], DriftRacer[1][2], DriftRacer[2][3], DriftRacer[2][4], DriftRacer[2][5], 10);
        }
        case 2:
        {
            StatusEventoRacer[1][playerid] = 3;
            PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
            SetPlayerRaceCheckpoint(playerid, 0, DriftRacer[2][0], DriftRacer[2][1], DriftRacer[2][2], DriftRacer[3][0], DriftRacer[3][1], DriftRacer[3][2], 10);
        }
        case 3:
        {
            StatusEventoRacer[1][playerid] = 4;
            PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
            SetPlayerRaceCheckpoint(playerid, 0, DriftRacer[3][0], DriftRacer[3][1], DriftRacer[3][2], DriftRacer[4][0], DriftRacer[4][1], DriftRacer[4][2], 10);
        }
        case 4:
        {
            StatusEventoRacer[1][playerid] = 5;
            PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
            SetPlayerRaceCheckpoint(playerid, 0, DriftRacer[4][0], DriftRacer[4][1], DriftRacer[4][2], DriftRacer[5][0], DriftRacer[5][1], DriftRacer[5][2], 10);
        }
        case 5:
        {
            StatusEventoRacer[1][playerid] = 6;
            PlayerPlaySound(playerid,1139,0.0,0.0,0.0);
            SetPlayerRaceCheckpoint(playerid, 1, DriftRacer[5][0], DriftRacer[5][1], DriftRacer[5][2], 0.0, 0.0, 0.0, 10);
        }
        case 6:
        {
            new Prize[2];
            Position++;
            switch(Position)
            {
                case 1: Prize[0] = (random(random(5000)) + 10000), Prize[1] = 10;
                case 2: Prize[0] = (random(random(4500)) + 9000), Prize[1] = 9;
                case 3: Prize[0] = (random(random(4000)) + 8000), Prize[1] = 8;
                case 4: Prize[0] = (random(random(3500)) + 7000), Prize[1] = 7;
                case 5: Prize[0] = (random(random(3000)) + 6000), Prize[1] = 6;
                case 6: Prize[0] = (random(random(2500)) + 5000), Prize[1] = 5;
                case 7: Prize[0] = (random(random(2000)) + 4000), Prize[1] = 4;
                case 8: Prize[0] = (random(random(1500)) + 3000), Prize[1] = 3;
                case 9: Prize[0] = (random(random(1000)) + 2000), Prize[1] = 2;
                default: Prize[0] = random(random(1000)), Prize[1] = 1;
            }
            new StyleDriftSTR[366];
            static place;
            place++;
            DisablePlayerRaceCheckpoint(playerid), print("chegou ate aqui 19860");
            StatusEventoRacer[1][playerid] = 0, print("chegou ate aqui 19861");
            //format(StyleDriftSTR, sizeof(StyleDriftSTR), "{00FF00}[EVENTO]: {FFFFFF}%s terminou o evento StyleDrift! {00FF00}[{FFFFFF}Posiзгo: %d%s{00FF00}] [{FFFFFF}Tempo: CriarTimer{00FF00}] \"Prкmio: $%d e +%d Score\".", Nome(playerid), place, (place == 1) ? ("st") : (place == 2) ? ("nd") : (place == 3) ? ("rd") : ("th"), Prize[0], Prize[1]);
            format(StyleDriftSTR, sizeof(StyleDriftSTR), "{00FF00}[EVENTO]: {FFFFFF}%s terminou o evento StyleDrift! {00FF00}[{FFFFFF}Posiзгo: %d%s{00FF00}] [{FFFFFF}Tempo: CriarTimer{00FF00}] Prкmio: $%d e +%d Score.", Nome(playerid), place, (place == 1) ? ("st") : (place == 2) ? ("nd") : (place == 3) ? ("rd") : ("th"), Prize[0], Prize[1]), print("chegou ate aqui 19863");
            MsgAll(comando, StyleDriftSTR), print("chegou ate aqui 19864");
            GivePlayerMoney(playerid, Prize[0]), print("chegou ate aqui 19865");
            SetPlayerScore(playerid, GetPlayerScore(playerid) + Prize[1]), print("chegou ate aqui 19866");
        }
    }
    return 1;
}
Resumindo...

Todas as printґs sгo printadas, mais o cуdigo continua nгo funcionando!
Reply
#10

Aumenta a string
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)