Graffiti Spawn..
#1

Код:
function OnLoadGraffiti()
{
    new nums,fields;
    cache_get_data(nums,fields);
    if(nums){
        new i = -1,idx;
        for(;++i<nums;)
		{
            idx = cache_get_field_content_int(i,"id");

            GraffInfo[idx][GraffitiMeret] = cache_get_field_content_int(i,"GraffitiMeret");
            cache_get_field_content(i,"Fujta",GraffInfo[idx][Fujta],g_SQL,32);
            cache_get_field_content(i,  "GraffitiSzoveg",   GraffInfo[idx][GraffitiSzoveg],g_SQL,24);
            GraffInfo[idx][GraffitiObject] = cache_get_field_content_int(i,"GraffitiObject");
            GraffInfo[idx][xPoz] = cache_get_field_content_float(i,"xPoz");
            GraffInfo[idx][yPoz] = cache_get_field_content_float(i,"yPoz");
            GraffInfo[idx][zPoz] = cache_get_field_content_float(i,"zPoz");
            GraffInfo[idx][xyPoz] = cache_get_field_content_float(i,"xyPoz");
            GraffInfo[idx][yyPoz] = cache_get_field_content_float(i,"yyPoz");
            GraffInfo[idx][zyPoz] = cache_get_field_content_float(i,"zyPoz");
            cache_get_field_content(i,"GraffitiColor",GraffInfo[idx][GraffitiColor],g_SQL,24);
            cache_get_field_content(i,"GraffitiTipus",GraffInfo[idx][GraffitiTipus],g_SQL,24);

            GraffInfo[idx][GraffitiObject] = CreateDynamicObject(19482, GraffInfo[idx][xPoz], GraffInfo[idx][yPoz], GraffInfo[idx][zPoz], GraffInfo[idx][xyPoz], GraffInfo[idx][yyPoz], GraffInfo[idx][zyPoz], -1, 0, -1, 200);
            SetDynamicObjectMaterialText(GraffInfo[idx][GraffitiObject], 0, GraffInfo[idx][GraffitiSzoveg], OBJECT_MATERIAL_SIZE_256x256, GraffInfo[idx][GraffitiTipus], GraffInfo[idx][GraffitiMeret], 0, GraffInfo[idx][GraffitiColor], 0, 1);

        }
    }
    if(nums) printf("[graffiti-system.inc] %d loaded",nums);
    else printf("[graffiti-system.inc] not loaded.");
    return 1;
}
MYSQL load the graffiti table, but dont spawn the graffities, why? :/
Reply


Messages In This Thread
Graffiti Spawn.. - by Blake95 - 18.08.2017, 06:35
Re: Graffiti Spawn.. - by Immortal99 - 18.08.2017, 11:32
Re: Graffiti Spawn.. - by Blake95 - 19.08.2017, 06:28

Forum Jump:


Users browsing this thread: 1 Guest(s)