24.09.2011, 20:44
You can do something like this:
pawn Код:
enum ainport_info
{
Float: fromx,
Float: fromy,
Float: fromz,
Float: tox,
Float: toy,
Float: toz,
traveldesc[35]
}
new
gLocation[][ainport_info] = {
{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, "Description"},
{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, "Description"}
};
// Now you can use that like so:
SetPlayerPos(playerid, gLocation[0][fromx], gLocation[0][fromy], gLocation[0][fromz]);
new
iStr[50];
format(iStr, sizeof(iStr), "Location description: %s", gLocation[0][traveldesc]);
SendClientMessage(playerid, -1, iStr);