Need help with a command.
#1

Hi there.

Iґve created 3 take-able turfs on my server. As a little extra, Iґve created a /turfs command which is supposed to show you the turfs and its occupations. Iґve started like this:

This is inside /turfs:
Код:
  format(turf1, sizeof(turf1), ">> El Quebrados <<: Occupied by %s", zone1owned);
	format(turf2, sizeof(turf2), ">> Gas Station <<: Occupied by %s", zone2owned);
	format(turf3, sizeof(turf3), ">> Snake Farm <<: Occupied by %s", zone3owned);
This is when you successfully take a turf over (One example):

Код:
zone3owned = USA;
Then, at the top of the script:

Код:
#define USA 1
#define Germany 2
#define Russia 3
#define China 4
#define Civilians 5
#define Unoccupied 1227
At OnGameModeinit, Iґve setted all things to "unoccupied".

Now, when you type /turfs ingame, it displays some weird letters, but no occupations. Why?



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)