Help...Loading Groups
#11

pawn Код:
stock LoadGroups2()
{
    printf("[System] Loading Groups's....");
    new data[256];
    for (new i=0; i<MAX_GROUPS; i++)
    {
        format(GlobalQuery, sizeof(GlobalQuery), "SELECT * FROM Groups ORDER BY Groupid");
        mysql_query(GlobalQuery);
        mysql_store_result();
        if(mysql_num_rows() > 0)
        {
            new line[1024];
            while(mysql_fetch_row(line)==1)
            {
                GroupCount++;
                mysql_fetch_field_row(data,"Groupid");
                Groups[i][Groupid]=strval(data);
                mysql_fetch_field_row(data,"GroupName");
                strmid(Groups[i][GroupName], data, false, strlen(Groups[i][GroupName]), 255);
                mysql_fetch_field_row(data,"RankName0");
                strmid(Groups[i][RankName0], data, false, strlen(Groups[i][RankName0]), 255);
                mysql_fetch_field_row(data,"RankName1");
                strmid(Groups[i][RankName1], data, false, strlen(Groups[i][RankName1]), 255);
                mysql_fetch_field_row(data,"RankName2");
                strmid(Groups[i][RankName2], data, false, strlen(Groups[i][RankName2]), 255);
                mysql_fetch_field_row(data,"RankName3");
                strmid(Groups[i][RankName3], data, false, strlen(Groups[i][RankName3]), 255);
                mysql_fetch_field_row(data,"RankName4");
                strmid(Groups[i][RankName4], data, false, strlen(Groups[i][RankName4]), 255);
                mysql_fetch_field_row(data,"RankName5");
                strmid(Groups[i][RankName5], data, false, strlen(Groups[i][RankName5]), 255);
                mysql_fetch_field_row(data,"RankName6");
                strmid(Groups[i][RankName6], data, false, strlen(Groups[i][RankName6]), 255);
                mysql_fetch_field_row(data,"MOTD);
                strmid(Groups[i][MOTD], data, false, strlen(Groups[i][MOTD]), 255);
                printf("
Loaded Groupid:%d",id);
                printf("
Groupid:%d Name:%s Rank0:%s Rank1:%s Rank2:%s Rank3:%s Rank4:%s Rank5:%s Rank6:%s MOTD:%s",
                Groups[i][Groupid],Groups[i][GroupName],Groups[i][RankName0],Groups[i][RankName1],Groups[i][RankName2],
                Groups[i][RankName3],Groups[i][RankName4],Groups[i][RankName5],Groups[i][RankName6],Groups[i][MOTD]);
            }
        }
    }
    printf("
[System] A Total Of %d Groups Spawned!",GroupCount);
    mysql_free_result();
    return 1;
}
o i hjust realized thats not a function.. btw.. im using stricken kids plugin, it doesnt have mysql_fetch_field_row
Reply


Messages In This Thread
Help...Loading Groups - by The_Gangstas - 25.11.2010, 19:40
Re: Help...Loading Groups - by Austin - 25.11.2010, 21:54
Re: Help...Loading Groups - by The_Gangstas - 25.11.2010, 21:57
Re: Help...Loading Groups - by Austin - 25.11.2010, 21:59
Re: Help...Loading Groups - by The_Gangstas - 25.11.2010, 22:03
Re: Help...Loading Groups - by Austin - 25.11.2010, 22:07
Re: Help...Loading Groups - by The_Gangstas - 25.11.2010, 22:08
Re: Help...Loading Groups - by Austin - 25.11.2010, 22:12
Re: Help...Loading Groups - by The_Gangstas - 25.11.2010, 22:34
Re: Help...Loading Groups - by Austin - 25.11.2010, 22:35
Re: Help...Loading Groups - by The_Gangstas - 25.11.2010, 22:43
Re: Help...Loading Groups - by Austin - 25.11.2010, 22:51
Re: Help...Loading Groups - by The_Gangstas - 25.11.2010, 23:07
Re: Help...Loading Groups - by Austin - 25.11.2010, 23:12
Re: Help...Loading Groups - by The_Gangstas - 25.11.2010, 23:20
Re: Help...Loading Groups - by Austin - 25.11.2010, 23:27
Re: Help...Loading Groups - by The_Gangstas - 25.11.2010, 23:40
Re: Help...Loading Groups - by Austin - 26.11.2010, 00:05
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 00:10
Re: Help...Loading Groups - by Austin - 26.11.2010, 00:13
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 00:16
Re: Help...Loading Groups - by Austin - 26.11.2010, 00:20
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 00:29
Re: Help...Loading Groups - by Austin - 26.11.2010, 00:33
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 00:41
Re: Help...Loading Groups - by Austin - 26.11.2010, 00:42
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 00:47
Re: Help...Loading Groups - by Austin - 26.11.2010, 00:56
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 01:22
Re: Help...Loading Groups - by Austin - 26.11.2010, 01:23
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 01:25
Re: Help...Loading Groups - by Austin - 26.11.2010, 01:27
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 01:27
Re: Help...Loading Groups - by Austin - 26.11.2010, 01:29
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 01:31
Re: Help...Loading Groups - by Austin - 26.11.2010, 01:41
Re: Help...Loading Groups - by The_Gangstas - 26.11.2010, 01:54

Forum Jump:


Users browsing this thread: 1 Guest(s)