Jump to content
  • 0

Problema gang


Mark S.

Question

Problema intalnita (descriere): Nu pot face sa se vada gangzoneul
Ero(area / rile) / warning-(ul / urile): nu am
Liniile de cod / sursa / script-ul:
 

 

enum TDATA
{
  Float:tfminx,
  Float:tfminy,
  Float:tfmaxx,
  Float:tfmaxy,
  tfaction,
  tid,
  tcolor[20]

}
new tInfo[MAX_TERITORIES][TDATA];

forward OnTurfsLoads();

new Teritoriu[sizeof(tInfo)];

 

la onplayerspawn

am asta si nu se vede

 

 


    for(new i = 0; i < sizeof(tInfo) ; i++)
    {
        new file[123];
        format(file, sizeof(file),"LARP/Ganguri/%d.ini", i)
        GangZoneShowForPlayer(playerid, Teritoriu, 0x2680D9C8);
    }

 

 

si

 

public OnTurfsLoads()
{
    new file[64];
    new string[123];
    for(new idx = 0; idx < sizeof(tInfo) ; idx++)
    {
        format(file, sizeof(file),"LARP/Ganguri/%d.ini", idx)
        if(dini_Exists(file))
        {
            tInfo[idx][tfminx] = dini_Float(file,"Entrance_X");
            tInfo[idx][tfminy] = dini_Float(file,"Entrance_Y");
            tInfo[idx][tfmaxx] = dini_Float(file,"Exit_X");
            tInfo[idx][tfmaxy] = dini_Float(file,"Exit_Y");
            tInfo[idx][tfaction] = dini_Int(file,"Factiunea");
            tInfo[idx][tid] = dini_Int(file,"Id");
            tInfo[idx][tcolor] = dini_Int(file,"Color");
            format(string, 256, " teritoriu %d incarcat",idx);
            print(string);
        }
    }
     return 1;
}

 

si scrie in server ca sa incarcat teritoruul 1 si 2 dar nu stiu cum sa il fac sa il arate

Imagini / Video (optional): -
Ati incercat sa rezolvati singur?:

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.