Services not saving
#4

The variable sName is a array, and you're setting the data as if it was a integer.

pawn Код:
stock LoadServices()
{
    new
        line[512],
        placeholder
    ;
    mysql_query("SELECT * FROM services LIMIT " #MAX_SERVICES "");
    mysql_store_result();
    while(mysql_fetch_row_format(line))
    {
        new data[3], sdata[ 128 ];
        sscanf(line, "p<|>ddds[128]", placeholder, data[0], data[1], sdata);
        print(line);
        ServiceInfo[services][sFunds] = data[0];
        ServiceInfo[services][sType] = data[1];
        strcat( ServiceInfo[services][sName], sdata );
        services++;
        printf("DEBUG: %i Services Loaded.", services);
    }
    mysql_free_result();
}
Reply


Messages In This Thread
Services not saving - by Luis- - 05.09.2011, 10:11
Re: Services not saving - by The_Moddler - 05.09.2011, 10:20
Re: Services not saving - by Luis- - 05.09.2011, 10:21
Re: Services not saving - by Cyanide - 05.09.2011, 10:40
Re: Services not saving - by Luis- - 05.09.2011, 10:52
Re: Services not saving - by Cyanide - 05.09.2011, 11:00
Re: Services not saving - by Luis- - 05.09.2011, 11:00
Re: Services not saving - by Cyanide - 05.09.2011, 11:06
Re: Services not saving - by Luis- - 05.09.2011, 11:15
Re: Services not saving - by Luis- - 05.09.2011, 11:24

Forum Jump:


Users browsing this thread: 4 Guest(s)