crash pawn
#2

You can't return constant strings like that, but you can return arrays.

pawn Код:
public GetDoorLock(houseId)
{
    if(gHouseVar[houseId][hLocked] == 0)
    {
        new szStr[] = "Ouverte";
        return szStr;
    }
    new szStr[] = "Fermйe";
    return szStr;
}
Reply


Messages In This Thread
crash pawn - by marquezsanchez - 29.06.2012, 10:06
Re: crash pawn - by iggy1 - 29.06.2012, 10:18
Re: crash pawn - by marquezsanchez - 29.06.2012, 10:40
Re: crash pawn - by iggy1 - 29.06.2012, 10:42
Re: crash pawn - by marquezsanchez - 29.06.2012, 11:47
Re: crash pawn - by marquezsanchez - 29.06.2012, 13:33

Forum Jump:


Users browsing this thread: 2 Guest(s)