10.10.2013, 09:59
Yes.
Look at the bottom, whlabel has a tag Text3D: and you use integers in the last. In order to remove the warnings, you'd need to do something like:
However, it's still not correct because you don't actually know the ID of the 3D label. I'd recommend you to use something like:
So if you add a new row in wh, add + 1 to MAX_WH.
Look at the bottom, whlabel has a tag Text3D: and you use integers in the last. In order to remove the warnings, you'd need to do something like:
pawn Код:
new wh[][whinfo] =
{
{STRACCI,"Stracci","~w~Stracci WareHouse",2631.6100,2348.2400,10.6700,1239, Text3D:0},
{CORLEONE,"Corleone","~r~Corleone ~w~WareHouse",2185.2300,1114.1200,12.6500,1239, Text3D:23},
{CUNEO,"Cuneo","~w~Cuneo WareHouse",2186.1140,2856.6030,11.7745,1239, Text3D:2},
{BARZINI,"Barzini","~w~Barzini WareHouse",2127.6200,2376.8300,10.8200,1239, Text3D:74},
{LEONE,"Leone","~w~Leone WareHouse",2664.5513,1271.8723,10.8434,1239, Text3D:26},
{TATTAGLIA,"Tattaglia","~w~Tattaglia WareHouse",1453.6600,750.4700,11.0200,1239, Text3D:5},
{PATERNO,"Paterno","~w~Paterno WareHouse",1043.1600,1012.3000,11.0200,1239, Text3D:27},
{KEMIROV,"Rizzuto","~w~Rizzuto WareHouse",941.0282,2346.8472,11.2599,1239, Text3D:18},
{TGB,"Triads","~w~Triads WareHouse",-2066.4868,-241.6661,35.3203,1239, Text3D:12}
};
pawn Код:
#define MAX_WH (9)
enum whinfo
{
whid,
whname[MAX_STRING],
whmsg[MAX_STRING],
Float:warehouse_x,
Float:warehouse_y,
Float:warehouse_z,
whpickup
}
new wh[MAX_WH][whinfo] =
{
{STRACCI,"Stracci","~w~Stracci WareHouse",2631.6100,2348.2400,10.6700,1239},
{CORLEONE,"Corleone","~r~Corleone ~w~WareHouse",2185.2300,1114.1200,12.6500,1239},
{CUNEO,"Cuneo","~w~Cuneo WareHouse",2186.1140,2856.6030,11.7745,1239},
{BARZINI,"Barzini","~w~Barzini WareHouse",2127.6200,2376.8300,10.8200,1239},
{LEONE,"Leone","~w~Leone WareHouse",2664.5513,1271.8723,10.8434,1239},
{TATTAGLIA,"Tattaglia","~w~Tattaglia WareHouse",1453.6600,750.4700,11.0200,1239},
{PATERNO,"Paterno","~w~Paterno WareHouse",1043.1600,1012.3000,11.0200,1239},
{KEMIROV,"Rizzuto","~w~Rizzuto WareHouse",941.0282,2346.8472,11.2599,1239},
{TGB,"Triads","~w~Triads WareHouse",-2066.4868,-241.6661,35.3203,1239}
};
new Text3D:whlabel[MAX_WH];