Problem with function
#1

I have little problem with this!
If i call this function from ongamemodeinit, i am getting only CJ skin available on spawn. Why?

pawn Код:
#define MAX_FIXADS 150
#define FIXCNTERKYLTTIFILE "ads/korjaamols/kyltit.ini" // ff
enum FixADInfo
{
    dblank,
    Float:adX,
    Float:adY,
    Float:adZ,
    adloop,
    Text3D:adloope
};
new kyltticoords[MAX_FIXADS][FixADInfo];
stock LoadFixCenterAds()
{
    new SplitDiv[3][MAX_FIXADS];
    new filestring[256];
    new File: file = fopen(FIXCNTERKYLTTIFILE, io_read);
    if (file)
    {
        for(new fixadid = 0; fixadid < MAX_FIXADS; fixadid++)
        {
            fread(file, filestring);
            split(filestring, SplitDiv, ',');
            kyltticoords[fixadid][adX] = floatstr(SplitDiv[0]);
            kyltticoords[fixadid][adY] = floatstr(SplitDiv[1]);
            kyltticoords[fixadid][adZ] = floatstr(SplitDiv[2]);
            kyltticoords[fixadid][adloop] = CreateDynamic3DTextLabel(fixcentername[fixcenteradtext], ADS_COLOR, kyltticoords[fixadid][adX], kyltticoords[fixadid][adY], kyltticoords[fixadid][adZ], DRAW_DISRANCE_3DTEXT, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, TEST_LOS, -1, -1, -1, 100.0);
            kyltticoords[fixadid][adloope] = CreateDynamicPickup(cSetting[fixadid], PICKUP_TYPE_NONE, kyltticoords[fixadid][adX], kyltticoords[fixadid][adY], kyltticoords[fixadid][adZ]);
        }

    }
    fclose(file);
}
No errors/warnings on compile.
Reply
#2

bump
Reply
#3

bump
Reply
#4

Quote:
Originally Posted by woaha
Посмотреть сообщение
bump
Your supposed to wait 24 hr's before bumping your topic.
Show your add player class bit's n pieces.
Reply
#5

There is nothing wrong in add player class. Or on player spawn or request class.

Problem still exist... :/
Reply
#6

bump
Reply
#7

bump
Reply
#8

bump
Reply
#9

edit: nvm read it wrong.

Show us your Ongamemodeinit
Reply
#10

Well, there is much data but... they should not cause that problem?
pawn Код:
ManualVehicleEngineAndLights();
SetGameModeText(GAME_MODE_NAME);
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(SHOW_TAGS);
SetNameTagDrawDistance(TAG_DRAW_DISTANCE);
EnableStuntBonusForAll(STUNTBONUS_FOR_ALL);


    txtTimeDisp = TextDrawCreate(130, 315, "00:00:00");
    TextDrawUseBox(txtTimeDisp, 0);
    TextDrawFont(txtTimeDisp, 3);
    TextDrawSetShadow(txtTimeDisp, 0); // no shadow
    TextDrawSetOutline(txtTimeDisp, 2); // thickness 1
    TextDrawBackgroundColor(txtTimeDisp, 0x000000FF);
    TextDrawColor(txtTimeDisp, 0xFFFFFFFF);
    TextDrawAlignment(txtTimeDisp, 3);
    TextDrawLetterSize(txtTimeDisp, 0.5, 1.5);

    for(new i; i < sizeof(Coords); i++)
    {
    CreateDynamicMapIcon(Coords[i][Xo],Coords[i][Yo],Coords[i][Zo],Coords[i][IDo], 0, -1, -1, -1, MAPICON_DISTANCE);
    }

    for(new c=1; c < vehcount; c++)
    {
        Gas[c] = VehicleInfo[c][gasse];
    }
    for(new c=1; c < vehcount; c++)
    {
        ModVehicle(c);
    }

Menuitems...
MakeGates...
AddPlayerClasses...
CreateDynamic3DTextLabels...
and much objects...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)