Gang help
#1

What I must to do to work when a player is in a gang?
I make something like that,and don't work so good..

Код HTML:
TotalGangTime(playerid, &hgtime=0, &mgtime=0, &sgtime=0)
{
    CosminInfo[playerid][GangID] = CosminInfo[playerid][TotalTime] = ((gettime() - CosminInfo[playerid][ConnectTime]) + (CosminInfo[playerid][ghours]*60*60) + (CosminInfo[playerid][gmins]*60) + (CosminInfo[playerid][gsecs]));
    CosminInfo[playerid][GangID] = hgtime = floatround(CosminInfo[playerid][TotalGTime] / 3600, floatround_floor);
    CosminInfo[playerid][GangID] = mgtime = floatround(CosminInfo[playerid][TotalGTime] / 60,   floatround_floor) % 60;
    CosminInfo[playerid][GangID] = sgtime = floatround(CosminInfo[playerid][TotalGTime] % 60,   floatround_floor);
    return CosminInfo[playerid][GangID] = CosminInfo[playerid][TotalGTime];
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)