Code - Stopping rest of OnGameModeInit() from loading
#1

I've got no idea whats wrong. The SQL tables aren't null, and this code used to work. Any ideas?

pawn Код:
printf("Loading Ranks...");

    mysql_query("SELECT * FROM `ranks`");
    mysql_store_result();

    while(mysql_fetch_row(resultline)==1)
    {
        printf("%s", resultline);

        new id, rid, rname[24];

        if(!sscanf(resultline, "p<|>dds[23]", id, rid, rname))
        {
            RankInfo[id][rid][rFactionID] = id;
            RankInfo[id][rid][rRankID] = rid;
            strmid(RankInfo[id][rid][rName], rname, 0, strlen(rname), 255);
        }
        else
        {
            print("Error: There was a problem parsing rank data! Moving to next result.");
        }
    }
    mysql_free_result();
Reply


Messages In This Thread
Code - Stopping rest of OnGameModeInit() from loading - by Antonio [G-RP] - 02.02.2011, 23:10
Re: Code - Stopping rest of OnGameModeInit() from loading - by [L3th4l] - 02.02.2011, 23:18
Re: Code - Stopping rest of OnGameModeInit() from loading - by Antonio [G-RP] - 02.02.2011, 23:23

Forum Jump:


Users browsing this thread: 1 Guest(s)