Function doesnt work
#2

dont know it this can help

pawn Код:
public ClaimTimer(turf, gang)
{
    new string[256];
    CPInfo[turf][cGangID] = gang;
    CPInfo[turf][cOwned] = 1;
    if(gang == 5) { strmid(CPInfo[turf][cGang], "Mafia", 0, strlen("Mafia"), 255); }
    else if (gang == 6) { strmid(CPInfo[turf][cGang], "Yakuza", 0, strlen("Yakuza"), 255); }
    else if (gang == 12) { strmid(CPInfo[turf][cGang], "Hell's Rebels", 0, strlen("Hell's Rebels"), 255); }
    else if (gang == 13) { strmid(CPInfo[turf][cGang], "Street People", 0, strlen("Street People"), 255); }
    else if (gang == 14) { strmid(CPInfo[turf][cGang], "Imports", 0, strlen("Imports"), 255); }
    else if (gang == 15) { strmid(CPInfo[turf][cGang], "Ballas", 0, strlen("Ballas"), 255); }
    else if (gang == 16) { strmid(CPInfo[turf][cGang], "Aztecas", 0, strlen("Aztecas"), 255); }
    else if (gang == 17) { strmid(CPInfo[turf][cGang], "Corporation", 0, strlen("Corporation"), 255); }
    else if (gang == 18) { strmid(CPInfo[turf][cGang], "Vagos", 0, strlen("Vagos"), 255); }
    else if (gang == 19) { strmid(CPInfo[turf][cGang], "Grove Street", 0, strlen("Grove Street"), 255); }
    else if (gang > 19) { strmid(CPInfo[turf][cGang], FamilyInfo[gang-20][FamilyName], 0, strlen(FamilyInfo[gang-20][FamilyName]), 255); }
    format(string, sizeof(string), "The %s have successfully claimed %s!", CPInfo[turf][cGang], CPInfo[turf][cMessage]);
    for(new i = 1; i < 11; i++) // Reset forbid/allow status for point
    {
        cGangAllowed[turf][i] = 0;
    }
    OOCNews(COLOR_RED,string);
    OnPropUpdate();
    CPInfo[turf][cAvailable] = 0;
}
Reply


Messages In This Thread
Function doesnt work - by Mikkel_RE - 04.11.2018, 15:46
Re: Function doesnt work - by Mikkel_RE - 04.11.2018, 19:49
Re: Function doesnt work - by cSharp - 04.11.2018, 22:47
Re: Function doesnt work - by Mikkel_RE - 05.11.2018, 13:59
Re: Function doesnt work - by Mikkel_RE - 06.11.2018, 14:10
Re: Function doesnt work - by Mikkel_RE - 23.11.2018, 13:47
Re: Function doesnt work - by v1k1nG - 23.11.2018, 14:14
Re: Function doesnt work - by Mikkel_RE - 23.11.2018, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)