18.10.2014, 08:08
pawn Code:
new aWeaponID[15][] = {
{"342"}, {"344"}, {"346"}, {"347"}, {"348"}, {"349"}, {"350"}, {"351"}, {"352"}, {"353"},
{"355"}, {"356"}, {"357"}, {"358"}
};
new aWeaponID[15][] = {
{"342"}, {"344"}, {"346"}, {"347"}, {"348"}, {"349"}, {"350"}, {"351"}, {"352"}, {"353"},
{"355"}, {"356"}, {"357"}, {"358"}
};
new aWeaponID[] = { {"342"}, {"344"}, {"346"}, {"347"}, {"348"}, {"349"}, {"350"}, {"351"}, {"352"}, {"353"}, {"355"}, {"356"}, {"357"}, {"358"} };
new aWeaponID[15] = {
{342}, {344}, {346}, {347}, {348}, {349}, {350}, {351}, {352}, {353},
{355}, {356}, {357}, {358}
};
// some codes
if(j == 0) id = AddStaticPickup(aWeaponID[0], 1, x, y, z, -1);
if(j == 1) id = AddStaticPickup(aWeaponID[1], 1, x, y, z, -1);
if(j == 2) id = AddStaticPickup(aWeaponID[2], 1, x, y, z, -1);
if(j == 3) id = AddStaticPickup(aWeaponID[3], 1, x, y, z, -1);
if(j == 4) id = AddStaticPickup(aWeaponID[4], 1, x, y, z, -1);
if(j == 5) id = AddStaticPickup(aWeaponID[5], 1, x, y, z, -1);
if(j == 6) id = AddStaticPickup(aWeaponID[6], 1, x, y, z, -1);
if(j == 7) id = AddStaticPickup(aWeaponID[7], 1, x, y, z, -1);
if(j == 8) id = AddStaticPickup(aWeaponID[8], 1, x, y, z, -1);
if(j == 9) id = AddStaticPickup(aWeaponID[9], 1, x, y, z, -1);
if(j == 10) id = AddStaticPickup(aWeaponID[10], 1, x, y, z, -1);
if(j == 11) id = AddStaticPickup(aWeaponID[11], 1, x, y, z, -1);
if(j == 12) id = AddStaticPickup(aWeaponID[12], 1, x, y, z, -1);
if(j == 13) id = AddStaticPickup(aWeaponID[13], 1, x, y, z, -1);
if(j == 14) id = AddStaticPickup(aWeaponID[14], 1, x, y, z, -1);
if(j == 15) id = AddStaticPickup(aWeaponID[0], 1, x, y, z, -1);
new aWeaponID[15] =
{
342, 344, 346, 347, 348, 349, 350, 351, 352, 353,
355, 356, 357, 358
};
if(j != 15) id = AddStaticPickup(aWeaponID[j], 1, x, y, z, -1);
else id = AddStaticPickup(aWeaponID[0], 1, x, y, z, -1);