String problem ><"
#4

I think this will work

pawn Код:
new GlobalString[200][200];

new FlightPlace[][] =
{
    "zhou test xp xp xp xp",
    "zhau test xp xp xp xp,
    "
zhiu test  xp xp xp xp",
    "
zhxu test xp xp xp xp",
};

public OnZBCDayChange()
{

    if(GetDay() == ZBC_MONDAY)
    {
        new FD = random(MAX_FLIGHTS_PER_AIRPORT);
       
        new x = 0;
        for(; x < FD; ++x)
        {
            new FP = random(sizeof(FlightPlace));
            format(GlobalString[0], sizeof(GlobalString), "
%s\n", FilghtPlace[FP][0]); // or put it x inplace of 0
            strcat(GlobalString[1], GlobalString[0]);
        }
    }

    return 1;
}
Reply


Messages In This Thread
String problem ><" - by Feastahashi - 04.12.2012, 02:12
Re: String problem ><" - by Nordic - 04.12.2012, 03:27
Re: String problem ><" - by Feastahashi - 04.12.2012, 03:44
Re: String problem ><" - by dr.lozer - 04.12.2012, 04:02
Re: String problem ><" - by cosbraa - 04.12.2012, 04:02
Re: String problem ><" - by Feastahashi - 04.12.2012, 04:09

Forum Jump:


Users browsing this thread: 1 Guest(s)