27.11.2010, 23:45
(
Последний раз редактировалось sergio_xd; 28.11.2010 в 02:47.
)
onde й que esta o erro aqui?
eu tento salvar a data no player info mais FAil...
ajudem ai a descobrir por que nao quer salvar a data, onde era pra salvar o gm ta colocando um espaco
eu tento salvar a data no player info mais FAil...
pawn Код:
//
PlayerInfo[giveplayerid][pVipvDia] = 0;
PlayerInfo[giveplayerid][pVipvMes] = 0;
PlayerInfo[giveplayerid][pVipvAno] = 0;
format(string, sizeof(string), " Agora %s e um jogador Vip", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
new Year, Month, Day;
Year = 0;
Month = 0;
Day = 0;
getdate(Year, Month, Day);
PlayerInfo[giveplayerid][pVipvAno] = Year;
//PlayerInfo[giveplayerid][pVipvAno] = Year;
if(Month == 1) { PlayerInfo[giveplayerid][pVipvMes] = 2; }
else if(Month == 2) { PlayerInfo[giveplayerid][pVipvMes] = 3; }
else if(Month == 3) { PlayerInfo[giveplayerid][pVipvMes] = 4; }
else if(Month == 4) { PlayerInfo[giveplayerid][pVipvMes] = 5; }
else if(Month == 5) { PlayerInfo[giveplayerid][pVipvMes] = 6; }
else if(Month == 6) { PlayerInfo[giveplayerid][pVipvMes] = 7; }
else if(Month == 7) { PlayerInfo[giveplayerid][pVipvMes] = 8; }
else if(Month == 8) { PlayerInfo[giveplayerid][pVipvMes] = 9; }
else if(Month == 9) { PlayerInfo[giveplayerid][pVipvMes] = 10; }
else if(Month == 10) { PlayerInfo[giveplayerid][pVipvMes] = 11; }
else if(Month == 11) { PlayerInfo[giveplayerid][pVipvMes] = 12; }
else if(Month == 12) { PlayerInfo[giveplayerid][pVipvMes] = 1; PlayerInfo[giveplayerid][pVipvAno] = Year+1; }