Need help with a command.
#5

That would be one way of doing it

pawn Код:
GetCountryName(zoneid)
{
    switch(zoneid)
    {
        case 1: return "USA";
        case 2: return "Germany";
        case 3: return "Russia";
        case 4: return "China";
        case 5: return "Civilians";
        default: return "Unoccupied";  
    }
}
pawn Код:
format(turf1, sizeof(turf1), ">> El Quebrados <<: Occupied by %s", GetCountryName(zone1owned));
    format(turf2, sizeof(turf2), ">> Gas Station <<: Occupied by %s", GetCountryName(zone2owned));
    format(turf3, sizeof(turf3), ">> Snake Farm <<: Occupied by %s", GetCountryName(zone3owned));
Reply


Messages In This Thread
Need help with a command. - by Striker_Moe - 31.10.2009, 14:11
Re: Need help with a command. - by Brendan_Thomson - 31.10.2009, 14:21
Re: Need help with a command. - by Striker_Moe - 31.10.2009, 14:22
Re: Need help with a command. - by Striker_Moe - 31.10.2009, 14:59
Re: Need help with a command. - by Nero_3D - 31.10.2009, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)