[GameMode] Gamemode Torcidas Organizadas - MySQL
#8

Quote:
Originally Posted by Dolpin
Посмотреть сообщение
#edit

Sim, posso ter outra forma usando:

pawn Код:
Mess = MesS == 1 ? ("01") : MesS == 2 ? ("02") ...
Mas gosto de entender meu prуprio cуdigo, nгo deixar-lo confuso.
?? wtf

pawn Код:
public AtualizarHoras(playerid)
{
    new AnoS, MesS, DiaS, HorasS, MinutoS, SegundoS, Mess[3];
    getdate(AnoS, MesS, DiaS);
    gettime(HorasS, MinutoS, SegundoS);
   
    format(Texto, sizeof(Texto), "%02d/%02d/%04d", DiaS, Mess, AnoS);
    TextDrawSetString(Data, Texto);
    format(Texto, sizeof(Texto), "%02d:%02d:%02d", HorasS, MinutoS, SegundoS);
    TextDrawSetString(Horas, Texto);
    SetWorldTime(HorasS);
    return 1;
}
tendeu agora porque falei do switch?

#edit

pawn Код:
//OnPlayerSpawn(playerid)
switch(Dados[playerid][Torcida])
{
    case 1: SetPlayerPos(playerid, 1833.7756, -1842.5320, 13.5781);
    case 2..40: SetPlayerPos(playerid, 0.0, 0.0, 0.0);
    default: SetPlayerPos(playerid, 1830.4520,-1842.7332,13.5781);
}
outro caso.
Reply


Messages In This Thread
Gamemode Torcidas Organizadas - MySQL - by Dolpin - 29.12.2014, 18:45
Re: Gamemode Torcidas Organizadas - MySQL - by Pitter - 29.12.2014, 18:51
Re: Gamemode Torcidas Organizadas - MySQL - by Pablo098 - 29.12.2014, 20:15
Re: Gamemode Torcidas Organizadas - MySQL - by PT - 29.12.2014, 20:37
Re: Gamemode Torcidas Organizadas - MySQL - by Dolpin - 29.12.2014, 20:40
Re: Gamemode Torcidas Organizadas - MySQL - by PT - 29.12.2014, 20:44
Re: Gamemode Torcidas Organizadas - MySQL - by Dolpin - 29.12.2014, 20:46
Re: Gamemode Torcidas Organizadas - MySQL - by PT - 29.12.2014, 20:53
Re: Gamemode Torcidas Organizadas - MySQL - by Artista - 01.01.2015, 22:23
Re: Gamemode Torcidas Organizadas - MySQL - by WLSF - 01.01.2015, 22:27

Forum Jump:


Users browsing this thread: 1 Guest(s)